Declare And Initialize Two Character Constants And Output It To User
Declare And Initialize Two Character Constants And Output It To User
In this example, you will learn to Declare And Initialize Two Character Constants And Output It To User in C language.
Code For "Declare And Initialize Two Character Constants And Output It To User".
/* Author --> HARSH PATEL */
#include<stdio.h>
int main()
{
char num1='X';
char num2='Y';
printf("num 1 is %c and 2 is %c",num1,num2);
return 0;
}
Output
num 1 is X and 2 is Y
- Now Program End Without Any Error.
![🖥️](https://fonts.gstatic.com/s/e/notoemoji/14.0/1f5a5_fe0f/32.png)
![👨🎓](https://fonts.gstatic.com/s/e/notoemoji/14.0/1f468_200d_1f393/32.png)
![👩🎓](https://fonts.gstatic.com/s/e/notoemoji/14.0/1f469_200d_1f393/32.png)
- If Any Query Regarding Programs, Website Or More Details Email Us On Contact@CodingWithHarsh.gq