C Programming Consider the following code:void main(){ int a[5] = {6,8,3,9,0}, i=0; if(i != 0) { break; printf("%d", a[i]); } else printf("%d", a[i++]);}What is the output of the above program? Runtime error 8 6 No output Syntax error Runtime error 8 6 No output Syntax error 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 100 100 0 100 100 5 100 100 100 100 5 0 20 5 0 100 100 0 100 100 5 100 100 100 100 5 0 20 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=VEDA y=EXAMIANS y=AMVEDA y=EDA y=MVEDA y=VEDA y=EXAMIANS y=AMVEDA y=EDA y=MVEDA ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function calculates the square of 'x' in C? sqr(x) pow(2, x) pow(x, 2) power(x, 2) power(2, x) sqr(x) pow(2, x) pow(x, 2) power(x, 2) power(2, x) 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);} None of these 25 20 30 24 None of these 25 20 30 24 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i; char a[]="�"; if(printf("%sn", a)) printf("Ok here n"); else printf("Forget itn");} Forget it Ok here Error None of These Forget it Ok here Error None of These ANSWER DOWNLOAD EXAMIANS APP