Today I was asked a what might look like simple or obvious question but a bit challenging for me to answer | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 2

Today I was asked a what might look like simple or obvious question but a bit challenging for me to answer

The question was '' why do c/c++ programs start with #include ''

6th Mar 2022, 9:37 AM
Izaiah Kay
Izaiah Kay - avatar
2 Respostas
+ 2
#include is a preprocessor directive which tells the preprocessor to include the code from the given library, if it is a standard library it should be Surrounded with <> for example <stdio.h> but if it is not in standard library it should be surrounded with ā€œā€ for example ā€œtestlib.hppā€
6th Mar 2022, 10:59 AM
Nima
+ 1
C. You don't have to include stdlib.h but if you don't then you won't have very much to work with! Sr.No. Functions 1 printf() 2 scanf() 3 getc() 4 putc() 5 fopen() 6 fclose() 7 remove() 8 fflush() Means you might still have getchar() putchar() to use, maybe that could be a challenge for our future?
6th Mar 2022, 11:08 AM
HungryTradie
HungryTradie - avatar