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

















Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is %d called in c?

749


Is c still used?

592


int far *near * p; means

3108


Explain the process of converting a Tree into a Binary Tree.

2094


Explain the meaning of keyword 'extern' in a function declaration.

708






What is function what are the types of function?

552


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

640


Are bit fields portable?

669


Why c is a mother language?

551


What is the importance of c in your views?

585


How can I find the modification date and time of a file?

596


What are the different types of control structures?

576


What is the difference between fread buffer() and fwrite buffer()?

665


What are the types of pointers?

595


What is character constants?

706