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
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
What is static volatile in c?
What is an array? What the different types of arrays in c?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
Is it better to use malloc() or calloc()?
How to explain the final year project as a fresher please answer with sample project
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
How can you increase the size of a statically allocated array?
What the advantages of using Unions?
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
What are the different data types in C?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
What is the description for syntax errors?
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...