C Programming Find the output of the following program.void main(){ char *msg = "hi"; printf(msg);} hi hi followed by garbage value Garbage Value h Error hi hi followed by garbage value Garbage Value h Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Which operator from the following has the lowest priority? Conditional operator Assignment operator Division operator Comma operator Unary-operator Conditional operator Assignment operator Division operator Comma operator Unary-operator ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:void main(){ int i=0, j=1, k=2, m; m = i++ || j++ || k++; printf("%d %d %d %d", m, i, j, k);} 1 1 2 3 None of these 0 1 2 2 0 1 2 3 1 1 2 2 1 1 2 3 None of these 0 1 2 2 0 1 2 3 1 1 2 2 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 15 10 30 1 -5 15 10 30 1 -5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:main(){ int i = 5; printf("%d%d%d%d%d", i++, i--, ++i, --i, i);} 45445 54544 45545 54554 45445 54544 45545 54554 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *p; p="%dn"; p++; p++; printf(p-2, 300);} None of These Error %d\n 300 None of These Error %d\n 300 ANSWER DOWNLOAD EXAMIANS APP