C Programming Determine Output:void main(){ char p[]="%dn"; p[1] = 'c'; printf(p, 65);} Error A c 65 Error A c 65 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is a complete function? void funct(x) { printf(“Hello"); } int funct(); void funct(int) { printf(“Hello"); } None of these int funct(int x) { return x=x+1; } void funct(x) { printf(“Hello"); } int funct(); void funct(int) { printf(“Hello"); } None of these int funct(int x) { return x=x+1; } ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int a[] = {10,20,30,40,50}, j, *p; for(j=0; j<5; j++){ printf("%d" ,*a); a++; } p = a; for(j=0; j<5; j++){ printf("%d" ,*p); p++; }} 10 20 30 40 50 10 20 30 40 50 10 20 30 40 50 Garbage Value Error None of These 10 20 30 40 50 10 20 30 40 50 10 20 30 40 50 Garbage Value Error None of These ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC"); 1 33 -1 0 Compilation Error 1 33 -1 0 Compilation Error ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the given program?#includevoid main(){float num=5.6;switch(num){case 5:printf("5");case 6:printf("6");default : printf("0");break;}printf("%d", num);} 5 5.600000 6 5.600000 0 5.600000 Complier error 5 5.600000 6 5.600000 0 5.600000 Complier error ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?#includevoid main(){ int i = 10; void *p = &i; printf("%d\n", (int)*p);} Undefined behavior Compiler time error Segmentation fault/runtime crash 10 Undefined behavior Compiler time error Segmentation fault/runtime crash 10 ANSWER DOWNLOAD EXAMIANS APP