This question was asked to me..plz see
#include<stdio.h>
void change()
{
/*Write something in this function so that the output
of printf in main function should give 5 . Do not
change the main function */ }
void main()
{
int i=5;
change();
i=10;
printf("%d",i);
}
and i answered it like this....
This question is wrong(not possible).....
because even if somehow I change the value of i in change() function....locally in main() you r always giving i a value of 10 after change()...so as far as i feel it can't be done
Am i right