C Programming What will be printed after compiling and running the following code?main() { char *p; printf("%d %d",sizeof(*p), sizeof(p));} 1 2 2 1 1 1 2 2 1 2 2 1 1 1 2 2 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);} 30 25 24 None of these 20 30 25 24 None of these 20 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output?void main(){ int a=10, b=20; char x=1, y=0; if(a,b,x,y){ printf("EXAM"); } } Compiler Error exam is printed Nothing is printed XAM is printed Compiler Error exam is printed Nothing is printed XAM is printed ANSWER DOWNLOAD EXAMIANS APP
C Programming Use of functions All of these Helps to avoid repeated programming across programs. Helps to avoid repeating a set of statements many times. Enhances the logical clarity of the program. Makes the debugging task easier. All of these Helps to avoid repeated programming across programs. Helps to avoid repeating a set of statements many times. Enhances the logical clarity of the program. Makes the debugging task easier. ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program? #include\ int main(){ extern int i; i = 20; printf("%ld ", sizeof(i)); return 0; } 4 Linker Error : Undefined symbol 'i' 2 Depends on the Compiler 4 Linker Error : Undefined symbol 'i' 2 Depends on the Compiler ANSWER DOWNLOAD EXAMIANS APP
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 Unequal None of these. Equal Error Unequal None of these. Equal ANSWER DOWNLOAD EXAMIANS APP