Change the line where you print the output to:
printf("\nmaximum of %d and %d is = %d",a,b,c);
See the docs here
Related Posts:
- Data argument not used by format strings in C
- Is there a way to have printf() properly print out an array (of floats, say)?
- How do you allow spaces to be entered using scanf?
- How to write to a file using open() and printf()?
- How to format strings using printf() to get equal length in the output
- How to format strings using printf() to get equal length in the output
- What do \t and \b do?
- C Error: declaration shadows a local variable — Won’t let me repeatedly replace the value of my float variable
- write() to stdout and printf output not interleaved?
- How many spaces for tab character(\t)?
- Correct format specifier for double in printf
- Scanf/Printf double variable C
- printf() formatting for hexadecimal
- What is the argument for printf that formats a long?
- What is the printf format specifier for bool?
- C error: Expected expression before int
- How to printf “unsigned long” in C?
- waitpid, wnohang, wuntraced. How do I use these
- Warning: assignment from incompatible pointer type
- C: error: expected ‘)’ before ‘;’ token
- Where is the C auto keyword used?
- How to printf a memory address in C
- execv vs execvp, why just one of them require the exact file’s path?
- difference between
and - How can one print a size_t variable portably using the printf family?
- Warning/error “function declaration isn’t a prototype”
- Returning an array using C
- %i or %d to print integer in C using printf()?
- warning: initializer element is not computable at load time
- How to prevent multiple definitions in C?
- How to pass 2D array (matrix) in a function in C?
- What are 0x01 and 0x80 representative of in C bitwise operations?
- How to make parent wait for all child processes to finish?
- Use of cudamalloc(). Why the double pointer?
- C dynamically growing array
- Why should we check WIFEXITED after wait in order to kill child processes in Linux system call?
- Mapping a numeric range onto another
- Why are hexadecimal numbers prefixed with 0x?
- OpenGL — GL_LINE_LOOP —
- too many arguments for format [-Wformat-extra-args]
- Valgrind complains with “Invalid write of size 8”
- How to print an unsigned char in C?
- Expression must be a pointer to a complete object type using simple pointer arithmetic
- cast to pointer from integer of different size, pthread code
- Invalid type argument of unary ‘*’ (have ‘int’) Error in C
- Why do I get “cast from pointer to integer of different size” error?
- C subscripted value is neither array nor pointer nor vector when assigning an array element value
- error: too few arguments to function `printDay’ (C language)
- Difference between sizeof(char) and sizeof(char *)
- Where to find the complete definition of off_t type?
- struct has no member named
- printf not printing to screen
- Initializing array of structures
- Still Reachable Leak detected by Valgrind
- How to empty a char array?
- Assembly x86 – “leave” Instruction
- Undefined reference to main – collect2: ld returned 1 exit status
- C’s printf and fprintf(stdout,) are not printing
- Convert Little Endian to Big Endian
- Excess elements of scalar initializer for pointer to array of ints
- How does one represent the empty char?
- Using floats with sprintf() in embedded C
- Printf width specifier to maintain precision of floating-point value
- Which of sprintf/snprintf is more secure?
- Can I define a function inside a C structure?
- Where is the
header file on Linux? Why can’t I find ? - What is the difference between %g and %f in C?
- Why is the sizeof(int) == sizeof(long)?
- Structure padding and packing
- How to repeat a char using printf?
- Tokenizing strings in C
- How to allocate array of pointers for strings by malloc in C?
- How to display hexadecimal numbers in C?
- How do you format an unsigned long long int using printf?
- What primitive data type is time_t? [duplicate]
- Reading float using scanf in c
- “-bash: gcc: command not found” using cygwin when compiling c?
- In C, what exactly happens when you pass a NULL pointer to strcmp()?
- lseek/write suddenly returns -1 with errno = 9 (Bad file descriptor)
- Should I use printf(“\n”) or putchar(‘\n’) to print a newline in C?
- Why and when to use static structures in C programming?
- error: struct has no member named X
- Where does linux store my syslog?
- Constructor for structs in C
- Can a function return two values?
- C: warning: excess elements in array initializer; near initialization for ‘xxx’ ; expects ‘char *’, but has type ‘int’
- Split string with multiple delimiters using strtok in C
- warning: missing terminating ” character [enabled by default]
- FFT in a single C-file
- Implicit function declarations in C
- Convert long long to string in C?
- How do I check if a string contains a certain character?
- Using pointer to char array, values in that array can be accessed?
- How can I create a dynamically sized array of structs?
- malloc(sizeof(int)) vs malloc(sizeof(int *)) vs (int *)malloc(sizeof(int))
- how to stop a loop arduino
- How to normalize a mantissa
- Level vs Edge Trigger Network Event Mechanisms
- How to use shared memory with Linux in C
- When is it ok to use a global variable in C?