Question Completion Status: 1 2 3 4 5 6 7 8 Question 1 What is the output for the given 'C' Program if 'a' value changes to 10.? #include <stdio.h> int main() { int a=9; if(a=8) { printf("\n"); } } printf("PROGRAM\n"); return 0; C PROGRAM C PROGRAM ERROR
Added by Hailey F.
Close
Step 1
The variable 'a' is initialized with a value of -9. Show more…
Show all steps
Your feedback will help us improve your experience
Dominador Tan and 63 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
What is the output of the below program? int main() { int a = 10; cout << a++; return 0; }
Paul G.
What is the output of this C code? #include <stdio.h> struct student { int no; char name[20]; }; void main() { struct student s; s.no = 8; printf("hello"); }
Amaad M.
What will be the output of the following code? int i = 20; if (i > 10) { System.out.println("The value of i is " + i); i++; if (i % 2 != 0) break; }
Shelayah R.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD