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

A set of N billiard balls are set on a one-dimensional table. The table is 1 meter long, set north-south with two pockets at either side. Each ball has zero width and there is no friction so it is moving with a fixed velocity of either northward or southward and bounces back in a perfect elastic collision from other balls it encounter on its way (or drop into one of the pockets). Your job is to keep track of the balls movements. Task Please write a program that gets the initial place, speed and direction of all the balls and gives the position of a specific ball after t seconds. Input The first line contains the number of scenarios. Each one of the other lines in the input contains a scenario: The first number, N, is the number of balls; followed by N pairs of numbers: the distance in centimeters from the south end of the table and the speed (positive speed meaning it moves northward); the last two numbers are the number i of the target ball you should track and the time T in seconds. Output The output is a single number for each line which is the place (distance in centimeters from the south end of the table) of the tracked ball after T seconds. Note: There is no new line character at the end of the result. Sample Input 5 1 50 1 1 1000 1 50 1 1 6 1 60 -2 1 6 2 10 1 95 -1 2 30 2 10 1 95 -1 2 60 Sample Output 100 56 48 65 70

0 Answers  


what is bitwise operator?

1 Answers   IBM,


How do you determine a file’s attributes?

0 Answers  


#include <stdio.h> int main() { if ("X" <"x") printf("X smaller than x "); } my question is whats the mistake in this program? find it and please tell me..

3 Answers  


main() { int a=4,b=2; a=b<<a + b>>2; printf("%d", a); }

4 Answers   CTS,






Which node is more powerful and can handle local information processing or graphics processing?

0 Answers  


What are the advantages and disadvantages of a heap?

0 Answers  


Differentiate between ordinary variable and pointer in c.

0 Answers  


a=0; b=(a=0)?2:3; a) What will be the value of b? why b) If in 1st stmt a=0 is replaced by -1, b=? c) If in second stmt a=0 is replaced by -1, b=?

6 Answers   Geometric Software,


write a own function to compare two strings with out using stringcomparition function?

6 Answers   LG Soft, Sasken,


Where are the auto variables stored?

0 Answers   TISL,


What does d mean?

0 Answers  


Categories