335 views
1 votes
1 votes

 Consider below code 

My ans : mech,g,mech 

Given ans : mech,g,civil

third printf statement is somwhat confusing ..

please explain 

Please log in or register to answer this question.

Related questions

91
views
2 answers
1 votes
kirmada asked 5 days ago
91 views
#include <stdio.h> int main() { // Write C code here int i=10,*p,**q,***r; p=&i; *p=15; q=&p; **q=20; r=&q; ***r=*p+1; printf("%d",i); return 0; }answer the output as integer _________
4.0k
views
3 answers
6 votes
Arjun asked Feb 16
4,045 views
​​​​​What is the output of the following $\text{C}$ program?#include <stdio.h> int main() { double a[2]=20.0,25.0,* p,* q; p=a ; q=p+1 ; printf("%d,%d", (int) (q-p),( int)(* q- * p)); return 0;$4,8$1,5$8,5$1,8$
511
views
2 answers
7 votes
GO Classes asked Feb 5
511 views
On a $64$-bit system, which of the following C expressions is equivalent to the C expression $(x[2]+4)[3]?$ Assume $\mathrm{x}$ is declared as $\textsf{int}\ast \ast \textsf{x}$\ast(( ... $(* \ast(x+2)+7)$
568
views
1 answers
1 votes
GO Classes asked Jan 21
568 views
Consider the following C program:-#include <stdio.h> void ubswap(int **a, int **b) { int* temp = *a; *a = *b; *b = temp; } int main() { int x = 1, y = 9; int ... $x$ and $y$u$ and $v$a$ and $b$None of the above