#include stdio.hint main(){int i = 1;if (i++ && (i == 1))printf("Yes\n");elseprintf("No\n");}
#include stdio.hOutput of the following program#include stdlib.hint main(){int* ptr;int n=5, i;printf("n is:%d",n);printf("Entered number of elements: %d\n", n);ptr = (int*)malloc(n * sizeof(int));if (ptr == NULL) {printf("Memory not allocated.\n");exit(0);}else {printf("Memory successfully allocated using malloc.\n");for (i = 0; i n; ++i){ptr[i] = i + 1;}printf("The elements of the array are: ");for (i = 0; i n; ++i) {printf("%d, ", ptr[i]);}}return 0;}
public class Test{ static int start = 2; final int end; public Test(int x) { x = 4; end = x; } public void fly(int distance) { System.out.println(end-start+" "); System.out.println(distance); } public static void main(String []args){ new Test(10).fly(5); } }