C++ Ternary Operator (Conditional Operator) | CPP Video Tutorial

preview_player
Показать описание
In this c++ / cpp programming video tutorials / lecture for beginners video series, you will learn about the ternary operators with example.

You will lean what are the ternary operators and also how to use them in your program, how a ternary operator can be used as alternative to simple if and else in detail with examples.

Learn Programming in HINDI at our youtube channel

Catch us on Social Media
Рекомендации по теме
Комментарии
Автор

i did it #include <iostream>

using namespace std;

int main()
{
int mark;

cout << " Enter your mark. ";
cin >> mark;

mark >=35 ? cout << "you have the test" : cout << "you failed";

return 0;
}

ok-dtdb
Автор

I really appreciate your lessons. You are excellent in teaching. Thanks for all the effort.

robertfaubion
Автор

I watched all the videos in c++.... learned a lot...even have more clarity than before.... thanks a lot... good work.. God bless you

shankarirajd
Автор

Watching this in 2020 and still it is the best tutorials that you can find online.

panavkumar
Автор

Great delivery.The first time I understood this concept of ternary very well.Keep the it up..

aliyakubu
Автор

thank you ma dude. you finally helped me to figure out my homework. <3

ibrahimshamaal
Автор

Will you ever do an OpenGL tutorial series? The internet needs your teaching style for such an advanced topic!! :)

robertfaubion
Автор

omg thanks m8 cheers!
1 question in my mind answered by watching this

berncalderon
Автор

thanks a lot anil thats a wonderful explaination

nishithbaravkar
Автор

I love this dude! Keep up the good work!

cororolyune
Автор

Only good for const veriables that need only two statements, you should still refer to (if else) conditions for clarity, readability and testing.

chevlonmacguinstudios
Автор

awesome....very helful plzz keep uploading such videos

devenwarang
Автор

Great video! Whats the name of the program you use to write cpp?

rectuserectus
Автор

Sir, which software do you use to run these kind stuffs???

sritamdas
Автор

What if we have more than two conditions? like If, else if and else? could you please explain?
Reply 2

bhonysingh
Автор

hey sir, , plzz explain if there is multiple ternary operator used in a program in the same line

shivamsharma-wuru
Автор

which is more efficient to use...this one or if else?

yobraFx
Автор

When would you recommend (or not) programmers to use ternary operators instead of the basic else-if statements?

CindyK
Автор

Is it possible to nest the ternary operator ( Like nested ifs)??
If so can you please tell how to do it??

SubSai
Автор

hi
if i use for loops for getting several numbers, how can i use question mark?

alitehrani
join shbcf.ru