#include<stdio.h>
void main()
{
char a = 'AB';
printf("%c", a);
}
// In the above program why the output is 'B';
Here we are assigning 'AB' to a char and there's no compiler error.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 3 of 3
Thread: C_programThreaded View
|
Click Here to Expand Forum to Full Width |