Q. What is the output of the C Program.?

Code:
int main()
{
    int a=0;
    a = (5>2) ? : 8;
    printf("%d",a);

    return 0;
}
  • (A) 0
  • (B) 1
  • (C) 8
  • (D) compiler error
πŸ’¬ Discuss
βœ… Correct Answer: (B) 1

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
229
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
86%
Success Rate