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

write a program to create a sparse matrix using dynamic memory allocation.

4374


State the difference between x3 and x[3].

653


Explain what is the difference between null and nul?

660


Write a program to print "hello world" without using a semicolon?

598


I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.

1740






Why main is not a keyword in c?

652


What does the function toupper() do?

658


What is the difference between void main and main in c?

626


Explain main function in c?

630


Do you know the difference between exit() and _exit() function in c?

610


Write a program which returns the first non repetitive character in the string?

605


In c programming language, how many parameters can be passed to a function ?

632


Is using exit() the same as using return?

680


What's the best way of making my program efficient?

628


Can stdout be forced to print somewhere other than the screen?

627