C Programming Determine Output:void main(){ int c = - -2; printf("c=%d", c);} -2 2 1 Error -2 2 1 Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Functions have .......... File scope No scope at all Function scope Local scope Block scope File scope No scope at all Function scope Local scope Block scope 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);} 20 24 25 30 None of these 20 24 25 30 None of these 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=EXAMIANS y=VEDA y=AMVEDA y=EDA y=MVEDA y=EXAMIANS y=VEDA y=AMVEDA y=EDA y=MVEDA ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the value of i and j after execution of following program?#includevoid main(){int i, j;for(i=0,j=0;i<10,j<20;i++,j++){printf("i=%d %t j=%d", i, j); }} 10 20 Run time error 10 10 20 20 10 20 Run time error 10 10 20 20 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program ?#include#includevoid main(){ char str[] = "Exam\0Veda"; printf("%s", str);} Exam Veda None of these Exam\0Veda Exam Veda Exam Veda None of these Exam\0Veda Exam Veda ANSWER DOWNLOAD EXAMIANS APP