Sail E0 Webinar
Question

What will be output if you compile following c code ?


#include<stdio.h>
int funct(char ch)
{
ch=ch+1;
return ch;
}
void main()
{
int a=127;
printf("%d %d",a,funct(a));
}


Options:
A .  Compile Error
B .  127 128
C .  127 -128
D .  None of these
Answer: Option C




Submit Your Solution Below and Earn Points !

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers