Answers for "string variable in c"

C
0

string in c

char c[100];
c = "C programming";  // Error! array type is not assignable.
Posted by: Guest on September-04-2021
0

string in c

#include <stdio.h>
int main()
{
    char name[20];
    printf("Enter name: ");
    scanf("%s", name);
    printf("Your name is %s.", name);
    return 0;
}
Posted by: Guest on September-04-2021

Code answers related to "C"

Browse Popular Code Answers by Language