This question is releated to C Langauge
What is the answer of the following and how it is comming:-
#include
#include
main()
{
char a='\101'
printf("%c",a);
}
Web Development
What is the answer of the following and how it is comming:-
#include
#include
main()
{
char a='\101'
printf("%c",a);
}
by iainsheppard
Don't quite know what you want to know. You've left a semi-colon off after char a='\101'; Also, if you're trying to store the character with ascii value 101 in a just do char a=101; You also don't need conio.h for what you're doing atm. Here is the correct program:
#include
void main()
{
char a=101;
printf("%c", a);
}
Hope this helps.
by ms_saini3302
by ms_saini3302
by iainsheppard
by ms_saini3302
by gary_w
When you specify a value starting with a slash, that's an octal (base 8) number.
Octal 101 = 'A'.
by ms_saini3302
by ms_saini3302
This discussion is closed to new replies.
Sort by Trending