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

two progs are given. one starts counting frm 0 to MAX and the other stars frm MAX to 0. which one executes fast.

5 Answers   Verifone,


can anyone please tell me wat is backlogs... i was looking for the job openings where i read this.. eligibility criteria minimum 70% in degree without backlogs. is that arrear.. if so is it standing arrear or history of arrears... please help me...

11 Answers   CTS, Indian Navy, L&T, Microsoft, SSB, TCE, TCS,


What is #define in c?

0 Answers  


how many times of error occur in C

11 Answers  


Explain what is the advantage of a random access file?

0 Answers  






if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

0 Answers  


Why flag is used in c?

0 Answers  


Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

0 Answers   Sikkim Manipal University,


increment operateor (++)and decrament(--) #include<stdio.h> #inclide<conio.h> main() { int x=15; while(x!=0) scanf("%d",&x); {

2 Answers   HCL, Syntel, TCS,


Does free set pointer to null?

0 Answers  


what is the differnce between AF_INET and PF_INET?

5 Answers   Systems Plus, Wipro,


Is register a keyword in c?

0 Answers  


Categories