Q. What is the output of C Program.?

Code:
int main()
{
    int a=0, b=0;
    while(++a < 4)
        printf("%d ", a);

    while(b++ < 4)
        printf("%d ", b);

    return 0;
}
  • (A) 0 1 2 3 1 2 3 4
  • (B) 1 2 3 1 2 3 4
  • (C) 1 2 3 4 1 2 3 4
  • (D) 1 2 3 4 0 1 2 3
πŸ’¬ Discuss
βœ… Correct Answer: (B) 1 2 3 1 2 3 4

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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