What will be the output of this program on an implementation where int occupies 2 bytes?
#include void main() { int i = 3; int j; j = sizeof(++i + ++i); printf("i=%d j=%d", i, j); }
A.i=4 j=2
B.i=3 j=2
C.i=5 j=2
D.the behavior is undefined
Answers
Answered by
0
Hii dear here is your answer
option a is the correct answer
Hope it's help u
option a is the correct answer
Hope it's help u
Answered by
9
Hey mate,☺☺☺
Here is your answer...✨✨✨
➡➡➡➡➡➡➡➡➡➡➡➡➡
QUESTION:
What will be the output of this program on an implementation where int occupies 2 bytes?
#include void main() { int i = 3; int j; j = sizeof(++i + ++i); printf("i=%d j=%d", i, j); }
A.i=4 j=2
B.i=3 j=2
C.i=5 j=2
D.the behavior is undefined
ANSWER:
Option 【A】i=4 j=2
✔✔✔✔✔✔✔✔✔✔✔✔✔
Hope this will help you...✨✨✨
Keep Asking..✌✌✌
❤❤❤ If helps you, Mark my answer as Brainliest....❤❤❤
Here is your answer...✨✨✨
➡➡➡➡➡➡➡➡➡➡➡➡➡
QUESTION:
What will be the output of this program on an implementation where int occupies 2 bytes?
#include void main() { int i = 3; int j; j = sizeof(++i + ++i); printf("i=%d j=%d", i, j); }
A.i=4 j=2
B.i=3 j=2
C.i=5 j=2
D.the behavior is undefined
ANSWER:
Option 【A】i=4 j=2
✔✔✔✔✔✔✔✔✔✔✔✔✔
Hope this will help you...✨✨✨
Keep Asking..✌✌✌
❤❤❤ If helps you, Mark my answer as Brainliest....❤❤❤
Similar questions
English,
7 months ago
Computer Science,
7 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Science,
1 year ago