Answers for "how to do printf in c"

C
2

printf in c

#include <stdio.h>

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

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

/// output :
///
///	Hello World !
///	20
///	Nice/20
///
Posted by: Guest on March-03-2020
3

%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
Posted by: Guest on May-04-2021

Code answers related to "C"

Browse Popular Code Answers by Language