Logo 
Search:

C Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C ProgrammingRSS Feeds

C programming practical question 78

  Shared By: Adah Miller    Date: Jan 24    Category: C Programming    Views: 79

Answer:

main()
{
char c=' ',x,convert(z);
getc(c);
if((c>='a') && (c<='z'))
x=convert(c);
printf("%c",x);
}
convert(z)
{
return z-32;
}


Answer:
Compiler error


Explanation:
declaration of convert and format of getc() are wrong.

Share: 
 

Didn't find what you were looking for? Find more on C programming practical question 78 Or get search suggestion and latest updates.


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: