Search:

Type: Posts; User: Fabii23

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    1,130

    if I add x = x+1 to ur code it works fine, like...

    if I add x = x+1 to ur code it works fine, like it should output for x is x+1.



    void func(int x)
    {
    x = x+1;
    }

    int main()
  2. Replies
    5
    Views
    1,130

    Thanks

    Give me a lil and Ill see what I can come up with , Im a java guy thats new to C and String manipulation
  3. Replies
    5
    Views
    1,130

    Unsure of why function wont recurse

    In the code below I have two test cases, one for and int value of 1 , it returns 1, so that is correct, but when I pass and integer greater than 2, the function should recurse until the base case is...
  4. Replies
    2
    Views
    1,091

    How to printf for varying variable

    I am trying to pad result with a length of zeros specified by padlength,
    I'm unsure of how to do this since the printf doesn't take this arg..






    void printConversion(int value)
    {
  5. Replies
    2
    Views
    1,172

    Why does this ouput random characters

    #include <stdlib.h> // for itoa() call
    #include <stdio.h> // for printf() call

    char *convert(int value);

    int main()
    {

    //print our string
    printf("%s\n", convert(123));
Results 1 to 5 of 5