Answers for "declare string 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
-3

string in c programming

#include <stdio.h>
int main(){
    char name[10];
    printf("What is your name: \n");
    scanf("%s", name);
    printf("Hello, %s!\n", name);
}
Posted by: Guest on April-19-2021

Code answers related to "C"

Browse Popular Code Answers by Language