New for programming

Discussion in 'C' started by neil, Sep 17, 2009.

  1. neil

    neil New Member

    Joined:
    Aug 22, 2006
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    Student/Call center employee
    Location:
    Mumbai
    Home Page:
    http://www.nilesh-sawant.co.nr
    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:
    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
     
    Last edited by a moderator: Sep 17, 2009
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    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
     
  3. vignesh1988i

    vignesh1988i Banned

    Joined:
    Sep 19, 2009
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Chennai
    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:):):):):)
     
  4. neil

    neil New Member

    Joined:
    Aug 22, 2006
    Messages:
    21
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    Student/Call center employee
    Location:
    Mumbai
    Home Page:
    http://www.nilesh-sawant.co.nr
    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
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice