Consider the following C codemain(){int i=3,x;while(i>0){x=func(i);i--;}int func(int n){static sum=0;sum=sum+n;return(sum);}}The final value of x isA. 6B. 8C. 1D. 3
Int *a[5] refers toA. array of pointersB. pointer to an arrayC. pointer to a pointerD. none of these
Which of the following statements is incorrectA. typedef struct new { int n1; char n2; } DATA;B. typedef struct { int n3; char *n4; }ICE;C. typedef union { int n5;
A
Latest Answer: answer is 5 times ...
# define prod(a,b)=a*bmain(){int x=2;int y=3;printf("%d",prod(x+2,y-10)); }the output of the program is a.8b.6c.7d.none
A
C
Latest Answer: C is invalid>> is an error here.It can be used with console input and console output but this left chevron operotor cannot be directly used to assign. ...
Which of the following statements is incorrecta.typedef struct new{int n1;char n2;} DATA;b.typedef struct {int n3;char *n4; }ICE;c.typedef union {int n5;float n6;} UDT;d.#typedef union {int n7;float n8;} TUDAT;
B
What is false about the following A compound statement is a.A set of simple statmentsb.Demarcated on either side by curly bracketsc.Can be used in place of simple statementd.A C function is not a compound statement.
C
Which of the following about the C comments is incorrect ?a.commentscan go over multiple linesb.comments can start any where in the linec.a line can contain comments with out any language statementsd.comments can occur within comments
C
Read the function conv() given belowconv(int t){int u;u=5/9 * (t-32);return(u0;}What a.15b.0c.16.1d.29
A
View page << Previous 3 4 5 6 [7] 8 9 Next >>

Go Top