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


Please Help Members By Posting Answers For Below Questions

How can I write a function that takes a format string and a variable number of arguments?

598


What are identifiers and keywords in c?

558


Does free set pointer to null?

547


What is hash table in c?

560


What is uint8 in c?

634






How can I open a file so that other programs can update it at the same time?

651


Can variables be declared anywhere in c?

612


Explain what happens if you free a pointer twice?

602


Is it valid to address one element beyond the end of an array?

664


What is the use of sizeof () in c?

548


Explain the properties of union. What is the size of a union variable

710


What 'lex' does?

710


a c code by using memory allocation for add ,multiply of sprase matrixes

2290


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

695


When should the volatile modifier be used?

674