Search:

Type: Posts; User: cruzinny

Search: Search took 0.00 seconds.

  1. Thread: Recursion

    by cruzinny
    Replies
    2
    Views
    1,001

    Recursion

    I can't get this program to compile. Gives me error that I am missing function header...Help

    #include <stdio.h>

    void Mystery(int A[], int size);


    {

    if(size>0) {
  2. Replies
    2
    Views
    1,810

    effect of following code

    What is the effect of following piece of code?

    char ch;
    while ((Ch = getchar()) != '\n')
    putchar (' ');

    a. It reads and writes exactly one line with a blank after each character
    b. It reads...
  3. Thread: get char

    by cruzinny
    Replies
    1
    Views
    1,316

    get char

    I don't understand the effect of following code:

    char ch;
    while((ch=getchar() )!= ';')
    putchar (Ch);


    Should this section read and write character up to but not including the firs semi colon.
Results 1 to 3 of 3