C Programming Determine Output:main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 2 4 4 2 5 5 2 4 5 8 5 5 2 4 4 2 5 5 2 4 5 8 5 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#define prod(a,b) a*bvoid main(){ int x=3, y=4; printf("%d", prod(x+2, y-1));} 15 12 11 10 15 12 11 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:void main(){ int i=0, j=1, k=2, m; m = i++ || j++ || k++; printf("%d %d %d %d", m, i, j, k);} 0 1 2 3 None of these 1 1 2 3 0 1 2 2 1 1 2 2 0 1 2 3 None of these 1 1 2 3 0 1 2 2 1 1 2 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming C preprocessor Takes care of macros Takes care of include files Acts before compilation All of these Takes care of conditional compilation Takes care of macros Takes care of include files Acts before compilation All of these Takes care of conditional compilation ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ char *msg = "hi"; printf(msg);} h hi followed by garbage value hi Garbage Value Error h hi followed by garbage value hi Garbage Value Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Use of functions All of these Makes the debugging task easier. Helps to avoid repeated programming across programs. Helps to avoid repeating a set of statements many times. Enhances the logical clarity of the program. All of these Makes the debugging task easier. Helps to avoid repeated programming across programs. Helps to avoid repeating a set of statements many times. Enhances the logical clarity of the program. ANSWER DOWNLOAD EXAMIANS APP