how make a character in c scanf
scanf(" %c", &c);
how make a character in c scanf
scanf(" %c", &c);
scanf in c
#include <stdio.h>
int main()
{
//Notice, that we have used &testInteger inside scanf().
//It is because &testInteger gets the address of testInteger,
//and the value entered by the user is stored in that address.
int testInteger;
printf("Enter an integer: ");
scanf("%d", &testInteger);
printf("Number = %d",testInteger);
return 0;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us