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 are the c keywords?
What does 1f stand for?
What is the meaning of && in c?
What is the difference between int main and void main in c?
Is c easy to learn?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
What is the use of in c?
What does the message "automatic aggregate intialization is an ansi feature" mean?
What is the meaning of typedef struct in c?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
What is difference between function overloading and operator overloading?
How can a string be converted to a number?
What is the difference between malloc() and calloc() function in c language?
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
Explain the difference between the local variable and global variable in c?