|
-
September 29th, 2005, 09:52 AM
#1
Can u give the Solution
Hello Gurus,
Can u give any solution for the below code.
Thanks
Sandy
void change()
{
//Do any thing that will print value of i in main as 5;
//without changing code of main
}
int main()
{
int i = 5 ;
clrscr();
change();
i = 10;
printf("Value of i=%d",i);
getch();
return 1;
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|