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

Explain about the functions strcat() and strcmp()?

0 Answers  


implement OR gate without using any bitwise operator.

1 Answers   Alcatel, Wipro,


parkside's triangle.. create a program like this.. enter the size: 6 enter the seed: 1 output: 1 23 456 7891 23456 789123 sample2: enter the size: 5 enter the seed: 3 output: 3 45 678 9123 45678 parkside should not exceed 10 while its seed should only be not more than 9..

4 Answers  


WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..

0 Answers  


what is uses of .net

0 Answers  






An array name contains base address of the array. Can we change the base address of the array?

4 Answers   NMIMS, Wipro,


What does #pragma once mean?

0 Answers   Celstream,


Explain what is wrong in this statement?

0 Answers  


Function shall sum members of given one-dimensional array. However, it should sum only members whose number of ones in the binary representation is higher than defined threshold (e.g. if the threshold is 4, number 255 will be counted and 15 will not) - The array length is arbitrary - output the results to the stdout

0 Answers   XYZ,


sqrt(x+sqrt(x+sqrt(x+sqrt(x))))=2; Find the value of x?

4 Answers   Subex,


all c language question

0 Answers   Wipro,


What are the 4 data types?

0 Answers  


Categories