VR Indian Wanderers Youtube RSS Feed
Learn with Vikas Suhag
C program to find largest among two numbers using ternary operator
Nov 26, 2021   Vikas Suhag

Program to find largest among two numbers using ternary operator

// C program to find largest among two
// numbers using ternary operator
#include <stdio.h>
void main()
{
int m = 5, n = 4;
(m > n) ? printf("m is greater than n that is %d > %d“,m, n)
: printf("n is greater than m that is %d > %d“,n, m);
}


Leave a Comment

* Email will not be published.
All comments are only visible after approval.
Most Viewed articles
Travel Blog - VR Indian Wanderers
VR Indian Wanderers
Govt. Jobs Portal
Govt. Jobs Portal
Free Chart Maker
Make free animated Charts from .CSV
Search
Youtube Channel
Podcast
Subscribe to Email Updates
Connect With Us
VR Indian Wanderers Youtube RSS Feed
© 2024 Learn with Vikas Suhag. All Rights Reserved.