C Programming :: Basic Concepts - Discussion
Home > C Programming > Basic Concepts > MCQs Questions Discussion
29 / 90
What is the output of the following program ?
#include<stdio.h>
void main()
{
char c=' ',x,convert(z);
getc(c);
if((c>='a') && (c<='z'))
x=convert(c);
printf("%c",x);
}
convert(z)
{
return z-32;
}
#include<stdio.h>
void main()
{
char c=' ',x,convert(z);
getc(c);
if((c>='a') && (c<='z'))
x=convert(c);
printf("%c",x);
}
convert(z)
{
return z-32;
}
AConvert to Upper Case
BConver to Lower Case
CNo Ouptput No error
DCompiler error
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!