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

What is the output of below code? main() { static int a=5; printf("%3d",a--); if(a) main(); }

1 Answers  


What are the features of c language?

0 Answers  


Write a program to swap two numbers without using third variable in c?

0 Answers  


define switch statement?

6 Answers   CTS,


Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it?

3 Answers  


Tell me what are bitwise shift operators?

0 Answers  


#include main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }

6 Answers   ME,


struct node { int *a; char *b; char array[12]; }; struct node m,*n; assign the value in *a,*b,char array[12]

3 Answers  


how can i calculate mean,median,mode by using c program

1 Answers   HCL,


Q. where is the below variables stored ? - volatile, static, register

3 Answers   Bosch,


Difference between Class and Struct.

13 Answers   Ericsson, Motorola, Wipro,


Can we include one C program into another C program if yes how?

7 Answers   Infosys,


Categories