server monitoring
+ Reply to Thread
Results 1 to 4 of 4

Thread: Can anyone solve this question in C programming Language?

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Posts
    9
    Quote Originally Posted by helma View Post
    Can someone enligten me on what below program does?
    I understand getchar and putchar.. but what is this program suppose to do?
    I try to put printf on it, but it shows nothing..

    can someone explain to me what this program is suppose to do?
    It is reading something and assigning to c?

    so, if I do, ./a.out filename , will it assign entire filename's content into c?

    #include <stdio.h>

    /* copy input to output; *st version */

    main()
    {
    int c;

    c = getchar();
    while (c != EOF) {
    putchar(c);
    c = getchar();
    }
    }
    -----------------
    [url=http://www.keywordspy.com/keyword-research-tool]Keyword Research[/url]
    [url=http://www.freebeautymakeover.com]Free Plastics Surgery[/url]
    hmm... that's a bit of a strange code there... course than again I dont code...:|

  2. #2
    Join Date
    Mar 2016
    Posts
    5

    can anyone solve this question in c language ?

    hi, i am not a guru in c language, but i think that you are trying to convert character data type to integer data type in that case as much i know i think that it is not going to be happen, because character data type value could not be convert in integer !

    http://graphicriver.net/item/flat-web-font-icons/*2457*66
    Last edited by mynamebilal; 03-18-2016 at 12:37 AM.

+ Reply to Thread

Similar Threads

  1. Replies: 38
    Last Post: 01-05-2017, 06:48 AM
  2. What's the most popular web programming language?
    By slicegan2 in forum Programming
    Replies: 14
    Last Post: 12-23-2010, 03:32 AM
  3. Programming language choice: Java
    By new_rez in forum General discussion
    Replies: 1
    Last Post: 08-06-2008, 04:20 PM
  4. The best programming language - Power
    By deleteX in forum Programming
    Replies: 9
    Last Post: 11-30-2006, 04:40 PM
  5. Programming Language for Writing Drivers?
    By loopers in forum Internet Privacy
    Replies: 2
    Last Post: 01-16-2003, 05:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts