This blog consists of C and C++ programs. C and C++ programming is the basics to learn any programming language. Most of the programs are provided with their respective outputs. This blog also contains Data Structures programs using Object-Oriented Programming (C++). Some of the best books for learning C and C++ programming are also mentioned.

Friday 1 November 2013

C program for Conditional Operator (Ternary Operators)

C program for Conditional Operators (Ternary Operators):

#include<stdio.h>
#include<conio.h>
main()
{
int a=10, b=20, small;
clrscr();
small=(a<b)?a:b;
printf("The small value = %d", small);
getch();
}

No comments:

Post a Comment