Physics · C Programming
निम्नलिखित C कोड स्निपेट को कंपाइल और रन करने का प्रयास करने पर क्या परिणाम होगा? #include int main() { int x = -1, y = 0, z = 1; int result = (x > 0) ? x : (y == 0) ? z : y; printf('%d', result); return 0; }
- 1आउटपुट 0 आता है
- 2आउटपुट -1 आता है
- 3आउटपुट 1 आता है
- 4डिक्लेरेशन लाइन में सेमीकोलन न होने के कारण कंपाइल-टाइम एरर✓
सही उत्तर देखें
डिक्लेरेशन लाइन में सेमीकोलन न होने के कारण कंपाइल-टाइम एरर
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Physics?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on C Programming?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Physics · C Programming