Printf Should Have A Prototype Error In C
Contents |
Answers Home All Categories Arts & Humanities Beauty & Style Business & Finance Cars & Transportation Computers & Internet Consumer Electronics Dining Out Education & Reference Entertainment & Music Environment Family & Relationships Food & function should return a value Drink Games & Recreation Health Home & Garden Local Businesses
Function Should Have A Prototype In C Error
News & Events Pets Politics & Government Pregnancy & Parenting Science & Mathematics Social Science prototype of scanf in c Society & Culture Sports Travel Yahoo Products International Argentina Australia Brazil Canada France Germany India Indonesia Italy Malaysia Mexico New Zealand Philippines Quebec Singapore Taiwan prototype of printf and scanf in c Hong Kong Spain Thailand UK & Ireland Vietnam Espanol About About Answers Community Guidelines Leaderboard Knowledge Partners Points & Levels Blog Safety Tips Computers & Internet Programming & Design Next In C compiler, whats the meaning of "printf should have a prototype " ? how do i resolve it ?
Prototype Error In Turbo C++
it prevents me from running the program ! Please help 1 following 3 answers 3 Report Abuse Are you sure you want to delete this answer? Yes No Sorry, something has gone wrong. Trending Now Ivanka Trump Bob Dylan Jane Fonda Bruno Mars 2016 Crossovers Auto Insurance Quotes Annie Schmidt Houston Texans Dating Sites Conan O'Brien Answers Relevance Rating Newest Oldest Best Answer: printf(); should have a prototype. its an error message given by C compiler. it means that the compiler doesnt know the definition of the statement printf(); the compiler usually gets the definition of statements from the header files.(file that ends with .h) printf() has its prototype in stdio.h , a header file that is used for standard input and output. if compiler says that printf() doesnt have a prototype, that means u havent included the stdio.h file. try this program. #include
help? Post your question and get tips & solutions from a community of 418,620 IT Pros & Developers. It's prototype for printf in turbo c quick & easy. Error: printf statement should contain prototype P: 13 goutham1 if we will take a void*p and int*q and we write q=p. then what will be the output in c and c++ hai can any body help me iam starting my c programming. i started my basic programme that
Malloc
is adding two numbers when i compiled my programme in cpp in the print f statement it is telling printf statement should contain prototype can any body please help me https://answers.yahoo.com/question/index?qid=20080216145112AAMSeqV May 13 '07 #1 Post Reply Share this Question 4 Replies 100+ P: 1,806 DeMan assuming you are including stdio.h, it sounds like you have a slight syntax error (specifically the way you are trying to display the output is not quite correct. It should probably look something like this (I am assuming integer addition here) Expand|Select|Wrap|Line Numbers printf("Sumof%dand%dis%d",a,b,(a+b)); https://bytes.com/topic/c/answers/646095-error-printf-statement-should-contain-prototype May 13 '07 #2 reply P: 13 goutham1 assuming you are including stdio.h, it sounds like you have a slight syntax error (specifically the way you are trying to display the output is not quite correct. It should probably look something like this (I am assuming integer addition here) Expand|Select|Wrap|Line Numbers printf("Sumof%dand%dis%d",a,b,(a+b)); my programme is like this main( ) { int a,b,c; a=5;b=6; c=a+b; printf("%d",c); } ihad changed it and seen the programme but the same error it is sowing please help me again it shows the msg like printf should have a prototype. May 14 '07 #3 reply Expert 2.5K+ P: 3,652 Ganon11 You are probably not including the proper header file. Before you type main(), type the following line: Expand|Select|Wrap|Line Numbers #include
Post your question and get tips https://bytes.com/topic/c/answers/946599-function-printf-should-have-prototype & solutions from a community of 418,620 IT Pros & Developers. It's quick & easy. the function printf() should have a prototype P: 1 Dhanu Dhanu im getting a msg dat.............. here, printf("the stack is underflow"); in dis line it shows the function printf should have a prototype..... wt in c is needed there,,, Feb 4 '13 #1 Post Reply Share this Question 2 Replies Expert Mod 10K+ P: 12,110 Rabbit Did you remember to include stdio? Feb 4 '13 #2 reply P: 5 muthuct8 Expand|Select|Wrap|Line Numbers #include