[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: C Preprocessor - Discussion

Home > C Programming > C Preprocessor > MCQs Questions Discussion

31 / 34

What will be output of the following "c" code?

#include<stdio.h>
#define islower(c)  ('a'<=(c) && (c)<='z')
#define toupper(c)  (islower(c)?(c)-('a'-'A'):(c))

main()
{
 char *p="i am fine";
 while(*p)
  printf("%c",toupper(*p++));
}

Abcd

BAFE

CaFe

DBCd

Answer: Option (Login/Signup)

Show Explanation

Asked In :: Global Edge

Post Your Answer Here:     

No Discussion on this question yet!