0

Find the error

#include <stdio.h> void main(){ int a=10; printf("a is ℅d",a); getch(); }

22nd Jul 2021, 11:45 AM
Vedika
Vedika - avatar
1 Odpowiedź
+ 6
No error actually getch() is defined in conio header file and this is not standard Library it will work on old compilers . Modern Compiler will give you warnings and errors too avoid your program with such types of headerfiles and function . Even in solo it won't work try to remove it and also getch() .use int main instead of void main
22nd Jul 2021, 11:58 AM
A S Raghuvanshi
A S Raghuvanshi - avatar