Introduction to Programming
This blog assists in mastering C and C++ programming skills from basics to advanced levels.
Pages
(Move to ...)
My First C Program
Basic Concepts
Looping
Branching
Patterns
Arrays
Functions
File Management
Strings
Special C Programs
Flowchart
Algorithm
Structure
Pointer
RAPTOR
Interview Questions
Quizzes
Question Bank
Games
Security
Networking
C++ Programming
ઈન્ટરનેટનું સામાન્ય જ્ઞાન
Projects
Contact us
▼
Tuesday, February 9, 2016
Using character variable in C program.
#include<stdio.h>
int main()
{
char ch;
printf("Enter your grade:");
scanf("%c", &ch);
printf("Your grade is %c",ch);
return 0;
}
Output of program
Enter your grade:A
Your grade is A
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment