Conditional Operator | C interview questions and answers
Vložit
- čas přidán 4. 09. 2024
- This video focuses on solving the questions based on "conditional operator" or "ternary operator" which are asked in technical interviews. We try to simplify their solution in an easy to understand approach. Pratice these C Programming questions and answers for interviews, campus placements, online tests, aptitude tests, quizzes and competitive exams. These questions can be attempted by anyone focusing on learning C Programming language.
very nice video sir...
Tq sir
@Tarun sir..thanQ
Your welcome
#include
int main()
{
int x, a = 5, b = 7;
a > b ? x = 5 : x = 7;
printf("Enter a value: %d", x);
return 0;
}
Sir please is program mai x = 7 parenthesis nhi laga raha hu toh error aa rahi hai kyu sir please btao sir kyu 🙏🙏🙏 sir agar isse (x= 7) kr raha hu toh koi error nhi aa rahi hai kyu please 🙏🙏🙏🙏🙏🙏🙏🙏🙏
Helpful 😍
Keep watching n learning
Nice video
Thnnks sir
Your welcome pramoda
Sir plz make more vedios on interview questions
In question no 3 b++ how to change 0 to. 1
Question 2 me sir control aage ni jaega kya
No
Thanks sir
3:06 Sir conditional opra. R to L solve karna padta hai ky in (qu.2)
Conditional l to r hai, but assignment r to l hai
@@tarunsir ok.. Thanks
Your welcome ...
Sir is it useful for c-cat cdac exam
Yes, definitely these are useful
@@tarunsir thanks a lot sir..! Whenever I search for McQ after completing any topic from c ,it shows your channel at top ,and it's good.
Q5. Wt you hve explain that is wrong there is not compulsory to have all expression.
How it is wrong ??? Is it possible in conditional operator that we do not write anything before ?, After ? Or after :
Explain properly
In which question you are facing problem? Please watch the full playlist instead of picking a video from some random spot. Thank you.
@@tarunsir 3rd one not understand sir ?