what will be the output for the following
main()
{
printf("hi" "hello");
}

Answers were Sorted based on User's Feedback



what will be the output for the following main() { printf("hi" "hello"); }..

Answer / sumesh

the output of this question will be hihello (without any blank space).

Is This Answer Correct ?    28 Yes 2 No

what will be the output for the following main() { printf("hi" "hello"); }..

Answer / manishsoni

can any one tell me hows the answer is:
hihello

Is This Answer Correct ?    2 Yes 0 No

what will be the output for the following main() { printf("hi" "hello"); }..

Answer / manoj

it raises an error

Is This Answer Correct ?    4 Yes 3 No

what will be the output for the following main() { printf("hi" "hello"); }..

Answer / chaitu

the output of this is "hihello"

Is This Answer Correct ?    3 Yes 3 No

what will be the output for the following main() { printf("hi" "hello"); }..

Answer / prabu

The output will be
hi hello

Is This Answer Correct ?    1 Yes 8 No

Post New Answer

More C Interview Questions

void main() { int s[4][2]={ {1234,56},{1212,33},{1434,80},{1312,78} }; int (*p)[2]; int i,j,*pint; for(i=0;i<=3;i++) { p=&s[i]; pint=p; printf("\n"); for(j=0;j<=1;j++) printf("%d",*(pint+j)); } } while running this program it shows a warning-suspicious pointer conversion ie pint=p; my que is why should we assign the value of p to pint again.why cant we use it directly as *(p+j)..but if i use like tat the o/p is garbage value..

1 Answers  


Find Index of least significant bit set in an Integer. ex. int value is say 10001000 results should be 4.

1 Answers  


Is there any data type in c with variable size?

0 Answers  


we have a 3litres jug and a 5 litres jug and no measures on them. using these two jugs how can we measure 4 litres of water?

2 Answers   Convergys,


Given an array of characters, how would you reverse it? How would you reverse it without using indexing in the array?

1 Answers   Microsoft,






Why do u use # before include in a C Progam?

9 Answers   IBM,


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

0 Answers   Gamesa, Satyam,


Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.

0 Answers  


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

0 Answers  


Is main a keyword in c?

0 Answers  


How do you do dynamic memory allocation in C applications?

0 Answers  


Differentiate between declaring a variable and defining a variable?

0 Answers  


Categories