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
List some basic data types in c?
Toggle nth bit in a given integer - num
How do we print only part of a string in c?
while initialization of two dimensional arrays we can initialize like a[][2] but why not a[2][] is there any reason behind this?
what value is returned to operating system after program execution?
What is a segmentation fault?
which operator having highest precedence? a.)+ b.)++ c.)= d.)%
What is null pointer in c?
int i; i=2; i++; if(i=4) { printf(i=4); } else { printf(i=3); } output of the program ?
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
What is the difference between realloc() and free()
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file