Condition to print hello world-puzzle question asked in interviews

Placewit
Jun 9, 2022

--

Question:

What should be the if condition in the following code snippet to print ‘Hello World’?

if “condition”
printf (“Hello”);
Else
printf(“World”);

Approach:

Using fork()

Thanks for Reading

Placewit grows the best engineers by providing an interactive classroom experience and by helping them develop their skills and get placed in amazing companies.

Learn more at Placewit. Follow us on Instagram and Facebook for daily learning.

--

--

Placewit
Placewit

Written by Placewit

Upskilling students for tech placements!

No responses yet