ablesWhat will be the status of this program upon compilation?#include <stdio.h>/* integer variable program */int main() { int i; i = 10; printf("Value of i is %d\n", i); i = 20; printf("Value of i is %d\n", i); getchar(); return 0;}OptionsError in compilationWill run successfully and display the following,Value of i is 10Value of i is 20Will run successfully and display the following,Value of i is 10Value of i is 10Garbage Values
Question
ablesWhat will be the status of this program upon compilation?#include <stdio.h>/* integer variable program */int main() { int i; i = 10; printf("Value of i is %d\n", i); i = 20; printf("Value of i is %d\n", i); getchar(); return 0;}OptionsError in compilationWill run successfully and display the following,Value of i is 10Value of i is 20Will run successfully and display the following,Value of i is 10Value of i is 10Garbage Values
Solution
The program will compile and run successfully, displaying the following:
Value of i is 10 Value of i is 20
Similar Questions
ablesWhat will be the status of this program upon compilation?#include <stdio.h>/* integer variable program */int main() { int i; i = 10; printf("Value of i is %d\n", i); i = 20; printf("Value of i is %d\n", i); getchar(); return 0;}OptionsError in compilationWill run successfully and display the following,Value of i is 10Value of i is 20Will run successfully and display the following,Value of i is 10Value of i is 10Garbage Values
ablesWhat will be the status of this program upon compilation?#include <stdio.h>int main() { char j = 'a'; int i = j; int k = (int)j; int l = 75; char m = (char)l; printf("value of i = %d, k = %d\n", i, k); printf("value of l = %d, m = %c\n", l, m); getchar(); return 0;}
What happens if we compile the following code?
lesWhat will be the status of this program upon compilation? #include <stdio.h>int main() { int i; i = 10; int I = 20; printf("Values i = %d and I = %d\n", i, I); getchar(); return 0;}
Which of the following describes a compiler
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.