a) Both are same
b) Scope of c is till the end of the main function in Program 2
c) In Program 1, variables a, b and c can be used anywhere in the main function whereas in Program 2, variables b and c can be used only inside their respective blocks
d) None of the mentioned
Comment on the following 2 C programs. #include <stdio.h> //Program 1 int main() { int a; int b;
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Comment on the following 2 C programs. #include <stdio.h> //Program 1 int main() { int a; int b;
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!