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
How can I write a function that takes a format string and a variable number of arguments?
What are identifiers and keywords in c?
Does free set pointer to null?
What is hash table in c?
What is uint8 in c?
How can I open a file so that other programs can update it at the same time?
Can variables be declared anywhere in c?
Explain what happens if you free a pointer twice?
Is it valid to address one element beyond the end of an array?
What is the use of sizeof () in c?
Explain the properties of union. What is the size of a union variable
What 'lex' does?
a c code by using memory allocation for add ,multiply of sprase matrixes
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
When should the volatile modifier be used?