Answers for "how to print a stirng in c"

C
0

printing out 2 strings in c

// Use of Getstring 
#include<stdio.h>
int main(){
char name[100];
int age;
printf("Enter your namen");
gets(name);
printf("your name is %s", name);
}
//In the terminal your name is (name input)
Posted by: Guest on February-03-2021
0

print a part of string c

int length = 5;
printf("%*.*s", length, length, "hello there");
Posted by: Guest on May-10-2021

Code answers related to "C"

Browse Popular Code Answers by Language