I Ivanesn New member Sep 18, 2021 #1 What will be output of the following c code? Code: #include<stdio.h> int main() { volatile int a=11; printf("%d",a); return 0; } A. 11 B. Garbage C. -2 D. Cannot Predict
What will be output of the following c code? Code: #include<stdio.h> int main() { volatile int a=11; printf("%d",a); return 0; } A. 11 B. Garbage C. -2 D. Cannot Predict
M Minh Phượng New member Sep 18, 2021 #2 Answer: d Explanation: Value of volatile variable can’t be predicted because its value can be changed by any microprocessor interrupt. Upvote 0 Downvote
Answer: d Explanation: Value of volatile variable can’t be predicted because its value can be changed by any microprocessor interrupt.