Answers for "c language string"

C
9

how to create a string in c

char greeting[6] = {'H', 'e', 'l', 'l', 'o', '\0'};
char greeting[] = "Hello";
Posted by: Guest on September-26-2020
1

c language string

//BY SAMEERAZ
#include<stdio.h>
#include<conio.h>
void main(){
char string[50];
clrscr();
printf("ENTER STRING:");
gets(s);//gets is basically used as scanf();
printf("TYPED STRING:%s",string);
getch();
}
Posted by: Guest on March-17-2021

Code answers related to "C"

Browse Popular Code Answers by Language