what is y value of the code if input x=10
y=5;
if (x==10)
else if(x==9)
elae y=8;
a.9
b.8
c.6
d.7
Answer
Is This Answer Correct ? | 1 Yes | 0 No |
# define prod(a,b)=a*b
main()
{
int x=2;
int y=3;
printf("%d",prod(x+2,y-10)); }
the output of the program is
a.8
b.6
c.7
d.none
Answer
Is This Answer Correct ? | 4 Yes | 1 No |
main()
{
char *p1="Name";
char *p2;
p2=(char *)malloc(20);
while(*p2++=*p1++);
printf("%s\n",p2);
}
what is the output?
Answer
Is This Answer Correct ? | 1 Yes | 0 No |
If "AaBbCc" is passed to the char
char x(*a)
{
a[0]?x(a+1):1;
printf("%c",a[0]);
return 1;
}
what will be the output?
Answer
Is This Answer Correct ? | 0 Yes | 0 No |
what is difference between ++(*p) and (*p)++
Answer
Is This Answer Correct ? | 1 Yes | 0 No |