C Programming What is the output of the following statements?int i = 0;printf("%d %d", i, i++); 1 1 0 1 None of these 0 0 1 0 1 1 0 1 None of these 0 0 1 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be output after executing following code?#include# define a 10void main(){ printf("%d..", a); foo(); printf("%d", a);}void foo(){ #undef a #define a 50} 0 10..10 Error 10..50 0 10..10 Error 10..50 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the following code's output if choice = 'R'?switch(choice){ case 'R' : printf("RED"); case 'W' : printf("WHITE"); case 'B' : printf("BLUE"); default : printf("ERROR");break;} ERROR RED RED WHITE BLUE ERROR RED ERROR RED WHITE BLUE ERROR RED RED WHITE BLUE ERROR RED ERROR RED WHITE BLUE ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 2 5 5 2 4 5 2 4 4 5 5 5 2 5 5 2 4 5 2 4 4 5 5 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the result of compiling and running this code?main(){ char string[] = "Hello World"; display(string);}void display(char *string){ printf("%s", string);} will print garbage value Compilation Error None of these. will print Hello World will print garbage value Compilation Error None of these. will print Hello World ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *p="hi friends", *p1; p1=p; while(*p!='\0') ++*p++; printf("%s", p1);} hj grjeodt hi friends ij!gsjfoet None of These hj grjeodt hi friends ij!gsjfoet None of These ANSWER DOWNLOAD EXAMIANS APP