C Programming What will be the output of the following code fragment?void main(){ printf("%x",-1<<4);} fff0 fff1 fff4 fff2 fff3 fff0 fff1 fff4 fff2 fff3 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the value of sum after the following program is executed?void main(){ int sum=1, index = 9; do{ index = index – 1; sum *= 2; }while( index > 9 );} 0.25 2 0.5 9 1 0.25 2 0.5 9 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is right way to Initialize array? int n(6) = { 2, 4, 12, 5, 45, 5 }; int num[6] = { 2, 4, 12, 5, 45, 5 }; int n{} = { 2, 4, 12, 5, 45, 5 }; int n{6} = { 2, 4, 12 }; int n(6) = { 2, 4, 12, 5, 45, 5 }; int num[6] = { 2, 4, 12, 5, 45, 5 }; int n{} = { 2, 4, 12, 5, 45, 5 }; int n{6} = { 2, 4, 12 }; ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#includevoid main(){ char s[]={'a','b','c','n','c','\0'}; char *p, *str, *str1; p=&s[3]; str=p; str1=s; printf("%c", ++*p + ++*str1-32);} P N None of These M P N None of These M ANSWER DOWNLOAD EXAMIANS APP
C Programming Size of the array need not be specified, when It is a declaratrion Initialization is a part of definition It is a formal parameter All of these It is a declaratrion Initialization is a part of definition It is a formal parameter All of these ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed when this program is executed?int f(int x){ if(x <= 4) return x; return f(--x);}void main(){ printf("%d ", f(7)); } Syntax error 4 5 6 7 Runtime error 1 2 3 4 4 Syntax error 4 5 6 7 Runtime error 1 2 3 4 4 ANSWER DOWNLOAD EXAMIANS APP