Hi All, I'm new to this forum. I recently started coding in C. I've tried two IDE's - CodeBlocks and DevC++.
But I get some kind of an error which am not able to resolve.
Here's a screen shot of the same.
And this is the the simple code that am trying to execute:
Anyone knows how to resolve this?Code:#include<stdio.h> #include<conio.h> int main(void) { int a[50]; int i; for(i = 0 ; i < 10 ; i++) { char next; scanf("%d", &a[i]); printf("Got more?"); scanf("%c", next); if(next == 'y') continue; else break; } printf("Count = %d", i); getch(); return 0; }
Thanks in advance.