Dear,
Why the below code ask me to enter 6 numbers? does it not input c[0]....c[4]?
Code:int c[5], *y,i; for(i=0;i<5;i++) { printf("%d:",i); scanf("%d\n",&c[i]); }
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 4 of 4
Threaded View
|
Click Here to Expand Forum to Full Width |