Search
 
SCRIPT & CODE EXAMPLE
 

C

C scanf() to read a string

#include <stdio.h>
int main()
{
    char name[20];
    printf("Enter name: ");
    scanf("%s", name);
    printf("Your name is %s.", name);
    return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: format specifiers in c 
C :: how to get input in 2d array in c 
C :: initializa 2d array c 
C :: binary tree in c search 
C :: epoch time in c 
C :: Write a C program to merge two array to third array. 
C :: struct main function c in unix 
C :: strings in c 
C :: getting string input in c 
C :: c code to grade marks 
C :: fgets c 
C :: syntax 
C :: c programming 
C :: print to console in c 
C :: sh: tailwindcss: command not found 
C :: maximo comun divisor 
C :: Float and Double Input/Output 
C :: argparse allow line break 
C :: print only last 3 number float in c 
C :: rust set toolchain 
C :: ternary operator in c 
C :: c function definition 
C :: files in c programming 
C :: len of str vbs 
C :: count number of items using delimiter 
C :: change base int in c 
C :: C - Type Casting 
C :: e sharm card jobkhozo.com 
C :: ssl_get_servername return null 
C :: c program boilerplate code 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =