Hi Guys, I have just started learning C++. I was writing a program in which i didn't get the desired output.
I am posting my Code and the output i got.
Code-
#include<stdio.h>
#include<conio.h>
int main()
{
char college='tum';
printf("Hi this is Nitin studying in %c",college);
getch();
return 0;
}
Output-
Hi this is Nitin studying in m
My doubt is why isn't the compiler displaying tum?
It will be great if you point out the error and let me know the correct solution.
Thanks in advance.