Functions

61

What will be output if you compile following c code ?

#include<stdio.h>
int funct1(int a)
{{;}{{;}return a;}}

void main()
{
   int a=17;
   printf("%d",funct1(a));
}

A. Compile Error
B. 0
C. 17
D. None of these

62

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));
}

A. Compile Error
B. 127 128
C. 127 -128
D. None of these

63

What will be output if you compile following c code ?

#include<stdio.h>
int compute(int a,int b)
int c;
{
   c=a+b;
  return c;
}
void main()
{
   int a=7,b=9;
   printf("%d",compute(a,b));
}

A. Compile Error
B. 16
C. 0
D. None of these