Comment on the following 2 C programs.
#include //Program 1int main(){ int a; int b; int c;}#include //Program 2int main(){ int a; { int b; } { int c; }}
#include //Program 1int main(){ int a; int b; int c;}#include //Program 2int main(){ int a; { int b; } { int c; }} Comment on the following 2 C programs.
#include <stdio.h> //Program 1int main(){ int a; int b; int c;}#include <stdio.h> //Program 2int main(){ int a; { int b; } { int c; }} Correct Answer 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
মোঃ আরিফুল ইসলাম
Feb 20, 2025