What will be the output of the given code?
Output:
E
Reason:
Char c will store the ASCII value of D
When you print C+1 the next char to D that is E is being printed in the output.
#include <stdio.h> int main(void)
{
char c='D';
printf ("%c",c+1);
return 0;
}
E
Reason:
Char c will store the ASCII value of D
When you print C+1 the next char to D that is E is being printed in the output.
No comments:
Post a Comment