C Programming Determine Output:void main(){ int c = - -2; printf("c=%d", c);} -2 Error 2 1 -2 Error 2 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements are true after execution of the program.void main(){ int a[10], i, *p; a[0] = 1; a[1] = 2; p = a; (*p)++;} Compilation error a[1] = 3 a[1] = 2 a[0] = 3 a[0] = 2 Compilation error a[1] = 3 a[1] = 2 a[0] = 3 a[0] = 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming char *ptr;char myString[] = "abcdefg";ptr = myString;ptr += 5;what string does ptr point to in the sample code above? efg cdefg bcdefg fg defg efg cdefg bcdefg fg defg ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=1; while(i<=5) { printf("%d", i); if(i>2) goto here; i++; }}fun(){ here: printf("PP");} Compiler Error None of These 12PP345 12PP Compiler Error None of These 12PP345 12PP ANSWER DOWNLOAD EXAMIANS APP
C Programming If integer needs two bytes of storage, then maximum value of an unsigned integer is 216 – 1 215 None of these 215 – 1 216 216 – 1 215 None of these 215 – 1 216 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the result of compiling and running this code?main(){ char string[] = "Hello World"; display(string);}void display(char *string){ printf("%s", string);} will print garbage value will print Hello World None of these. Compilation Error will print garbage value will print Hello World None of these. Compilation Error ANSWER DOWNLOAD EXAMIANS APP