Introduction to Programming
This blog assists in mastering C and C++ programming skills from basics to advanced levels.
Pages
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
Monday, June 13, 2016
Use of conditional operator in C.
//Use of conditional operator in C.
#include<stdio.h>
int main()
{
int n1=5, n2=10;
(n1>n2) ? printf("n1 is big.") : printf("n2 is big.");
return 0;
}
Output of program
n2 is big.
No comments:
Post a Comment
Newer Post
Older Post
Home
View mobile version
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment