18 - What is the output of the following code segment in C ? int a=5%; c= fork(); if (c==0) { a = a+%3; printf("%d", a); } else { a = a-%; printf("%d", a) } a) 55 b) 5 6 in any order 6 4 in any order 6 6 Boş bırak

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter17: Linked Lists
Section: Chapter Questions
Problem 11SA
icon
Related questions
Question
100%
18 - What is the output of the following code segment in C ?
int a=5%3;
c= fork();
%3D
if (c==0) {
a = a+%;
printf("%d", a);
} else {
a = a-1;
printf("%d", a)
a)
55
b)
5 6 in any order
c)
6 4 in any order
d)
6 6
Boş bırak
Transcribed Image Text:18 - What is the output of the following code segment in C ? int a=5%3; c= fork(); %3D if (c==0) { a = a+%; printf("%d", a); } else { a = a-1; printf("%d", a) a) 55 b) 5 6 in any order c) 6 4 in any order d) 6 6 Boş bırak
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Datatypes
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning