C Programming What will be the output of the following program?#include#define prod(a,b) a*bvoid main(){ int x=3,y=4; printf("%d", prod(x+2,y-1));} 10 11 12 None of these 15 10 11 12 None of these 15 ANSWER DOWNLOAD EXAMIANS APP
C Programming The default parameter passing mechanism is call by reference None of these. call by value result call by value call by reference None of these. call by value result call by value ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment:for(c=1, sum=0; c <= 10; c++){ scanf("%d", &x); if( x < 0 ) continue; sum += x;}What would be the value of sum for the input 1, -1, 2, -2, 3, -3, 4, -4, 5, -5 1 10 -5 30 15 1 10 -5 30 15 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=0; for(;i++;printf("%d", i)); printf("%d", i);} 1 11 12 Error 1 11 12 Error ANSWER DOWNLOAD EXAMIANS APP
C Programming #includevoid main(){ int *ptr, a=10; ptr = &a; *ptr += 1; printf("%d, %d", *ptr, a);} 11, 11 11, 10 10, 10 10, 11 11, 11 11, 10 10, 10 10, 11 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");} Ok here None of These Error Forget it Ok here None of These Error Forget it ANSWER DOWNLOAD EXAMIANS APP