wat is the output
int main()
{
char s1[]="Hello";
char s2[]="Hello";
if(s1==s2)
printf("Same");
else
printf("Diff");
}

















Answers were Sorted based on User's Feedback



wat is the output int main() { char s1[]="Hello"; char s2[]="Hello&quo..

Answer / prachi

ans is diff

Is This Answer Correct ?    15 Yes 2 No

wat is the output int main() { char s1[]="Hello"; char s2[]="Hello&quo..

Answer / jitendra nath das

Ans is Diff.

Is This Answer Correct ?    8 Yes 0 No

wat is the output int main() { char s1[]="Hello"; char s2[]="Hello&quo..

Answer / sumesh

ITS A WRONG METHOD TO COMPARISON OF TWO STRINGS..SO OUTPUT WILL BE CAN NOT CONVERT int * TO char *.


THANKS...

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More C Interview Questions

What is #ifdef ? What is its application?

0 Answers   TCS,


Why is c faster?

0 Answers  


Describe wild pointers in c?

0 Answers  


What is wild pointer in c?

0 Answers  


why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above

0 Answers  


what is y value of the code if input x=10 y=5; if (x==10) else if(x==9) elae y=8; a.9 b.8 c.6 d.7

4 Answers   TCS,


Why the below program throughs error during compilation? #include<stdio.h> #include<conio.h> enum { ZERO, ONE, TWO, }; main() { printf("%d",&TWO); getch(); }

2 Answers  


Would you rather wait for the results of a quicksort, a linear search, or a bubble sort on a 200000 element array? 1) Quicksort 2) Linear Search 3) Bubble Sort

3 Answers  


write an interactive program to generate the divisors of a given integer.

7 Answers   TCS,


what is stack , heap ,code segment,and data segment

0 Answers  


Explain the difference between getch() and getche() in c?

0 Answers  


What do you mean by c what are the main characteristics of c language?

0 Answers  


Categories