← Operating System 🟡 Medium 📋 Sanfoundry

How many times the following C program prints yes? main() { fork();fork();printf("yes"); }

Question #558 of 1,002+ in Operating System

📝 Question #558

How many times the following C program prints yes? main() { fork();fork();printf("yes"); }

⌨️ Press A B C D to select

All Options & Correct Answer

A only once Correct
B twice
C four times
D eight times

📋 Question Details

📚
Subject
Operating System
🎯
Difficulty
Medium
📅
Year
📋
Source
Sanfoundry

📤 Share This MCQ

📚 Want More?

Practice Operating System MCQs

1,002+ questions with detailed answers