Answers for "print char in c"

C
3

how make a character in c scanf

scanf(" %c", &c);
Posted by: Guest on July-08-2020
3

c printing char pointer

#include <stdio.h>

int main()
{
char * str = "Hello";
printf("%s\n", str);

return 0;
}
Posted by: Guest on November-22-2020
2

c print char

char bob = 'X';
printf("%c", bob);
putchar(bob);
Posted by: Guest on April-02-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

Code answers related to "C"

Browse Popular Code Answers by Language