Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


main()
{
char p[] = "hello world!";
p = "vector";
printf("%s",p);
}

Answers were Sorted based on User's Feedback



main() { char p[] = "hello world!"; p = "vector"; printf("%s",p); ..

Answer / amir khan

Vector because char a[] gives error due to empty parenthesis

Is This Answer Correct ?    4 Yes 3 No

main() { char p[] = "hello world!"; p = "vector"; printf("%s",p); ..

Answer / shiva

vector

Is This Answer Correct ?    13 Yes 17 No

Post New Answer

More C Interview Questions

Find string palindrome 10marks

5 Answers   Honeywell, Infosys, Riktam, Roland,


how to capitalise first letter of each word in a given string?

0 Answers  


What are the different types of storage classes in C?

3 Answers  


How to write c functions that modify head pointer of a linked list?

0 Answers  


What is difference between arrays and pointers?

0 Answers  


4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

5 Answers  


How do you write a program which produces its own source code as output?

0 Answers  


What is sparse file?

1 Answers  


how to multiply two number taking input as a string (considering sum and carry )

2 Answers   Wipro,


what is the use of fflush() function?

2 Answers  


How can you read a directory in a C program?

0 Answers  


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

1 Answers   Mind Tree,


Categories