C Programming What will be the output of the following program?void main(){ char str1[] = "abcd"; char str2[] = "abcd"; if(str1==str2) printf("Equal"); else printf("Unequal");} Error None of these. Equal Unequal Error None of these. Equal Unequal ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of the following program?#includeint c[10] = {1,2,3,4,5,6,7,8,9,10}; main(){ int a, b=0; for(a=0;a<10;++a) if(c[a]%2 == 1) b+=c[a]; printf("%d", b);} 24 None of these 20 30 25 24 None of these 20 30 25 ANSWER DOWNLOAD EXAMIANS APP
C Programming The declarationint (*p) [5];means p is a pointer to a 5 elements integer array. p is one dimensional array of size 5, of pointers to integers. The same as int *p[ None of these. p is a pointer to a 5 elements integer array. p is one dimensional array of size 5, of pointers to integers. The same as int *p[ None of these. ANSWER DOWNLOAD EXAMIANS APP
C Programming C preprocessor Takes care of include files All of these Takes care of macros Takes care of conditional compilation Acts before compilation Takes care of include files All of these Takes care of macros Takes care of conditional compilation Acts before compilation ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:void main(){ int const *p=5; printf("%d", ++(*p));} 5 Garbage Value Compiler Error 6 5 Garbage Value Compiler Error 6 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *p; printf("%d %d", sizeof(*p), sizeof(p));} 2 1 2 2 1 1 1 2 2 1 2 2 1 1 1 2 ANSWER DOWNLOAD EXAMIANS APP