main()
{
char p[] = "hello world!";
p = "vector";
printf("%s",p);
}
Answer Posted / amir khan
Vector because char a[] gives error due to empty parenthesis
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What is the function of volatile in c language?
What is self-referential structure in c programming?
What is a wrapper function in c?
What is the condition that is applied with ?: Operator?
What is the difference between printf and scanf in c?
Are the expressions * ptr ++ and ++ * ptr same?
What is restrict keyword in c?
Explain data types & how many data types supported by c?
What are terms in math?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
What is substring in c?
Explain what is the purpose of "extern" keyword in a function declaration?
How do you define structure?
what is the basis for selection of arrays or pointers as data structure in a program
Is it possible to use curly brackets ({}) to enclose single line code in c program?