Answers for "how to use printf"

1

format using printf

%[flags][width][.precision]conversion-character
Posted by: Guest on July-13-2021
1

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
///
Posted by: Guest on March-03-2020

Browse Popular Code Answers by Language