Horje
printf in c Code Example
printf in c
#include <stdio.h>

int printf(const char *format, ...);

int main(void)
{
  int nb = 20;
 
  printf("Hello World !\n");
  printf("%d\n", nb);
  printf("%s/%d\n", "Nice", 20);
  return (0);
}

/// output :
///
///	Hello World !
///	20
///	Nice/20
///
%d in printf in c
%s - Take the next argument and print it as a string
%d - Take the next argument and print it as an int




C

Related
round function in C Code Example round function in C Code Example
rounding decimal number in C Code Example rounding decimal number in C Code Example
how to reverse a string in c Code Example how to reverse a string in c Code Example
How to make a printf in c Code Example How to make a printf in c Code Example
array reference argument Code Example array reference argument Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9