in Programming in C
314 views
0 votes
0 votes
#include <stdio.h>

 int main(void)
 {
 int b;
 b='100';
 printf("%c",b);

   return 0;
 }

this shows output as 0.

i didnt understand it?
in Programming in C
314 views

1 Answer

1 vote
1 vote

This is a case of multi character constant
This will clear your doubt :)


http://www.zipcon.net/~swhite/docs/computers/languages/c_multi-char_const.html

by

2 Comments

thanks for helping me out, this topic is really new to me.
0
0
can you explain it in a simple way
0
0

Related questions