Function Printf Should Have A Prototype Error In C
Contents |
prototype Go to Page... Page 1 of 2 1 2 > Thread Tools Display Modes Apr 26th, 2010, 3:59 AM #1 VanGogh Newbie Join Date: Apr 2010 Posts: 21 Rep Power: 0 Function 'printf' should have a prototype im making my first steps in function should return a value C programming, and as i was trying to execute my first lines, it seems that i have function should have a prototype in c error a problem, and i couldnt find answers in the book. i tried to run a simple calculation: when i compiled, i got the following error: "Function prototype of scanf in c 'printf' should have a prototype" (as you can also see in the pic above). can anyone please point me to the problem? and please use simple language, i'm a beginner, as you probably noticed. thanks in advance. VG. VanGogh View Public
Printf Prototype In C
Profile Find More Posts by VanGogh Apr 26th, 2010, 5:19 AM #2 Adak Hobby Coder Join Date: May 2006 Posts: 1,181 Rep Power: 12 Re: Function 'printf' should have a prototype C is a language that is used on many different types of devices. Many don't have a standard display device. So you need to tell your compiler that YOU DO have a stdio device by adding this line to the top of your program: (Toggle Plain Text) #include Programming C# C and C++ Java Pascal and Delphi Visual Basic Perl Python Assembly Bash / Shell Scripting Mobile Development Game Development Web Development General Discussions PHP ASP.NET ASP Ruby Databases HTML5 / HTML / XHTML / DHTML CSS / CSS3 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++ JavaScript / jQuery / AJAX / JSON ColdFusion Website Design Tutorials Submit Tutorial Assembly C and C++ C# Database HTML, CSS and JavaScript Java PHP Python Visual Basic Game Development Mobile Development Other Tutorials Community Search Site Members Lounge Introduce Yourself Image Gallery Facebook Twitter YouTube Guidelines FAQ Help Blogs Gallery Unanswered Join Codecall.net Why Join Codecall? Register with Facebook Register with Twitter Android Cheats More Codecall → Language Forums → C and C++ Javascript Disabled Detected http://www.programmingforums.org/thread27344.html You currently have javascript disabled. Several functions may not work. Please re-enable javascript to access full functionality. Check out our Community Blogs Recent Topics Google Map does not load in Magento store locator page. eCommDev - Oct 13 2016 05:09 AM Unable To Find Links To Proper Php7 Courses or Tutorials Be They Free Or Paid ! uniqueideaman - Oct 12 2016 01:53 PM HostForLIFE.eu – Cheap Windows & ASP.NET Core 1.0.1 hosting | UNLIMITED Diskspace EUWindowsHost http://forum.codecall.net/topic/55595-function-printf-should-have-a-prototype-beginner-question/ - Oct 09 2016 07:54 PM Square root estimation program rounding float values to left of decimal only problem, no ints used sonar87 - Oct 09 2016 10:11 AM Simple while loop, i mean really simple and i cant do it :( Siten0308 - Oct 05 2016 11:54 AM Recent Blog Entries Remove Characters in String T-SQL with No Loop Part 2 Barnsite's Blog 09 May Remove Characters in String T-SQL with No Loop Barnsite's Blog 09 May Black hat hacking DarkLordofthePenguins's Blog 05 Nov Essential skills for computer nerds DarkLordofthePenguins's Blog 11 Sep Adventures in VirtualBox DarkLordofthePenguins's Blog 22 Jul Recent Status Updates · Unlock · Lock 03 Sep surajkumardotin Student college project Hide Comments · Unlock · Lock 25 Jun TopHatProductions115 The TXP-Network is coming back this July... Hide Comments · Unlock · Lock 12 Feb moonvik Java... Hide Comments · Unlock · Lock 04 Feb camD357 I love this community ! Hide Comments · Unlock · Lock 02 Jan JackJames hi i am jack i am seo expert jack james would love you to read new post Hide Comments View All Updates Popular Tags networking Managed C++ stream console database authentication Visual Basic 4 / 5 / 6 session Connection import syntax hardware html5 asp.net array java mysql php c++ string C# HTML loop timer jquery ajax programming javascript Android Post your question and get tips https://bytes.com/topic/c/answers/946599-function-printf-should-have-prototype & solutions from a community of 418,553 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 #includePrototype For Printf In Turbo C
Malloc