Tuesday, July 28, 2009

Any one knows c programming?

i have done a program by seeing my text book and the following error occur,How can i solve these errors (1) decleration syntax erroe


(2) showld have a prototype


(3) function call missing


how could i solve these error

Any one knows c programming?
1) - the syntax at some place is wrong, It can be due to wrong spelling of a keyword, it can be coz, u forget giving space between two words, sometimes, tying mistakes. or some special chracter coming bewteen which is not allowed, check for this.


2) - Any function u call and declare should have a prototype on top. like, If u r using fun(int a, int b); then a line on top will be there like fun(int,int). probably u missed that.


3) - semicolon after a function call is missing.
Reply:find this character ( or ) Look At each one of them and you might find you problem on function call missing





Look At Your Every Declaration And ID's
Reply:I think you forgot to


#include%26lt;somefile.h%26gt;





You have forgotten to include a file that has the function that you have calle in your program
Reply:(1) Maybe you forgot to place a semicolon(;) after the C statement.


No comments:

Post a Comment