Page 1 of 1

Comment on the following 2 C programs. #include <stdio.h> //Program 1 int main() { int a; int b;

Posted: Wed Jul 13, 2022 7:54 pm
by answerhappygod
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