Results 1 to 7 of 7

Thread: Errors in printf() in c programming

  1. #1
    Join Date
    Dec 2010
    Posts
    102

    Errors in printf() in c programming

    Hello, I am studying in fy bsc(it) and I am having five subjects. One of my subjects is C programming and I have a problem, so please help me out. my problem is that I want to change the color of the result text of printf().how can I do so or what is the procedure so that I can change the color of the result text of printf().so please provide an appropriate solution for this problem so that I can get rid of this problem.

  2. #2
    Join Date
    Dec 2010
    Posts
    109

    Re: Errors in printf() in c programming

    I am also studying in first year and I also have a subject called as C programming. When I write a normal C program, I get an error that is printf() should have a prototype. The line where I write printf() it give me this error in that line. I have tried many ways to solve the error but couldn’t find the solution for it. I want to get rid of this problem, so please assist me and give me a proper solution to solve this problem.

  3. #3
    Join Date
    Dec 2010
    Posts
    106

    Re: Errors in printf() in c programming

    Hi, I also have a problem in C programming. My problem is that I have written a C program that will display “hello” and when I compile this program it gives 1 error that a colon is missing. Please give me the proper guidance and help me out. Please try to solve the error in this line:-printf(“hello”).I get the error in this line and tried to solve but I was unsuccessful.

  4. #4
    Join Date
    Dec 2010
    Posts
    78

    Re: Errors in printf() in c programming

    I am also in fy and I also have a subject called C programming .My problem is that I get multiple errors when compile C Programs. I have solve same errors but not able to solve 2 errors that are printf() should have a prototype and second one is that colon is missing. Please help me out to solve this problem. p lease give me an appropriate guidance so that I can solve my errors.

  5. #5
    Join Date
    Dec 2010
    Posts
    53

    Re: Errors in printf() in c programming

    Hi, I have a problem in subject called as C programming. The problem is that I get an error that is quotes are missing. I have got this type of error in most of my C programs when I compile them. Please give me proper guidance and tell me the proper solution to remove errors so that I can compile my program and can see the results of the program and get rid of such types of errors.

  6. #6
    Join Date
    Feb 2011
    Posts
    63

    Re: Errors in printf() in c programming

    I am having problem in one of my C program .my problem is that I get errors in that program. I have got three errors .first error is that semicolon is missing, second error is that quotes is missing and third error is that printf() should have a prototype. please assist me and give me a proper guidance and help me out in solving this three errors so that I can compile my program and get the result.

  7. #7
    Join Date
    Jul 2008
    Posts
    289

    Re: Errors in printf() in c programming

    The format for writing printf() is: printf(“text you want to display”);. The spelling of printf() should be properly written. Text that you want to display must always be written in brackets and inside double quotes. After the brackets are closed there must always be a semi colon. There must be no space between printf command. Printf should always be in a lower case.

Similar Threads

  1. What is the printf() function of the C language
    By Tailor in forum Software Development
    Replies: 5
    Last Post: 27-02-2010, 04:26 PM
  2. printf double in c
    By GlassFish in forum Software Development
    Replies: 5
    Last Post: 26-02-2010, 09:27 PM
  3. What is runtime errors in the programming?
    By Level8 in forum Software Development
    Replies: 5
    Last Post: 12-12-2009, 12:44 PM
  4. Socket programming: Is any new Programming Language?
    By Kushan in forum Software Development
    Replies: 3
    Last Post: 14-11-2009, 11:13 AM
  5. Replies: 3
    Last Post: 13-12-2008, 01:49 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,001,756.08399 seconds with 17 queries