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()
Type: Posts; User: Fabii23
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()
Give me a lil and Ill see what I can come up with , Im a java guy thats new to C and String manipulation
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...
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)
{
#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));