V
vaysagekv
Hi,
A)Is it possible to declare a variable inside for loop like
for(int i=100;i>=0;i--);
if yes what is the scope of that variable?
B)if there is a for loop like below
for(int i=0;int c = getchar();i++);
after finishing for loop execution c variable will be destroyed or not.
A)Is it possible to declare a variable inside for loop like
for(int i=100;i>=0;i--);
if yes what is the scope of that variable?
B)if there is a for loop like below
for(int i=0;int c = getchar();i++);
after finishing for loop execution c variable will be destroyed or not.