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.
🖥️ Learn Programming Languages Free In Our Website Coding With Harsh 
👨‍🎓 5000+ Happy Visitor 👩‍🎓
🌐 Free Programing Examples In WebsitCoding With Harsh 

  • If Any Query Regarding Programs, Website Or More Details Email Us On Contact@CodingWithHarsh.gq

Popular posts from this blog

C Program To Print Hello World

C Program To Calculate Profit Or Loss