C Programming What will be the output of the given program?#includevoid main(){ int i=10; printf("i=%d", i); { int i=20; printf("i=%d", i); i++; printf("i=%d", i); } printf("i=%d", i);} 10 20 21 10 10 20 21 21 10 10 11 11 10 20 21 20 10 20 21 10 10 20 21 21 10 10 11 11 10 20 21 20 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the given program?#includevoid main(){int value1, value2=100, num=100;if(value1=value2%5) num=5;printf("%d %d %d", num, value1, value2);} 5 0 20 5 0 100 100 0 100 100 100 100 100 5 100 5 0 20 5 0 100 100 0 100 100 100 100 100 5 100 ANSWER DOWNLOAD EXAMIANS APP
C Programming A C variable cannot start with An alphabet A special symbol other than underscore A number Both of the above An alphabet A special symbol other than underscore A number Both of the above ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements are true after execution of the program.void main(){ int a[10], i, *p; a[0] = 1; a[1] = 2; p = a; (*p)++;} a[0] = 3 Compilation error a[0] = 2 a[1] = 2 a[1] = 3 a[0] = 3 Compilation error a[0] = 2 a[1] = 2 a[1] = 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming char* myfunc(char *ptr){ ptr+=3; return(ptr);}void main(){ char *x, *y; x = "EXAMVEDA"; y = myfunc(x); printf("y=%s", y);}What will be printed when the sample code above is executed? y=MVEDA y=EXAMIANS y=AMVEDA y=VEDA y=EDA y=MVEDA y=EXAMIANS y=AMVEDA y=VEDA y=EDA ANSWER DOWNLOAD EXAMIANS APP
C Programming Choose the best answer.Prior to using a pointer variable It should be declared. It should be both declared and initialized. It should be initialized. None of these. It should be declared. It should be both declared and initialized. It should be initialized. None of these. ANSWER DOWNLOAD EXAMIANS APP