Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   New for programming (http://www.go4expert.com/forums/new-for-programming-t19465/)

neil 17Sep2009 13:40

New for programming
 
Hello shabbir sir, i m back after a year of my surgery. hows you??
If aanyone can help me for this?

I started learning C programming nd bought a book of balaguruswamy. but i am nt able to understand it & theres no1 who is there to expalin me..plz tell me tha easiet reference book for C on internet.

Code: CPP

main()
{
printf("i see, i remember")
}


when i run this simple progrmme it gave me error of protoype function after main. plz tell me wht is PROTTYPE function & wht sould be the correct statement


Thanking you.
Neil

shabbir 17Sep2009 13:56

Re: New for programming
 
One year of surgery? That looked just too serious. Good to see you back and there are many errors in your program.

You have not included the needed header files as well as missing semi-colon after printf

vignesh1988i 23Sep2009 08:51

Re: New for programming
 
i will tell u a very nice book . name is Yashwanth k kanethker ... this will be very easy for u to learn conepts as well as implementing ur programs.... lot's of solved examples will be given for understanding and also tutorial too given...... PL. refer that book.......

in ur code u have left a semicolon ... ur code should be:
#include<stdio.h>
#include<conio.h>
void main()
{
printf(".....");
getch();
}

there are 3 parts in function:
a) Function prototype
b) Function calling
c) Function definition

since you have left a semicolon(;) after printf , the compiler had taken it as function Definition.......
run the above code and see , it will work properly......


thank u:):):):):)

neil 6Oct2009 14:06

Re: New for programming
 
Hey Thanks vignesh for ur help. I will definitely buy that book. well by the way i got book of E BALGURUSWAMY.

Hoping to get the help for the same in future also.

God bless you.

Regards;
Neil


All times are GMT +5.5. The time now is 06:35.