Question: Consider the following program int main0 printf(Hello World ) This program was put in a file named hello.c and compiled with the following command: gcc

 Consider the following program int main0 printf("Hello World ") This program

Consider the following program int main0 printf("Hello World ") This program was put in a file named hello.c and compiled with the following command: gcc -std-c99 --pedantic -o hello hello.o Execution of this command resulted in the following error. hello.c: In function 'main': hello.c:2: warning: incompatible implicit declaration of built-in function 'printf Explain this error message and indicate what change should be made to the source program to eliminate the error

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!