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
Explain the meaning of keyword 'extern' in a function declaration.
write a c program to remove all the duplicate characters in a string and replace with single character? ex:-input- AAABBBCCC output- ABC
What is static and auto variables in c?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
Tell me what is the purpose of 'register' keyword in c language?
1.what are local and global variables? 2.what is the scope of static variables? 3.what is the difference between static and global variables? 4.what are volatile variables? 5.what is the use of 'auto' keyword? 6.how do we make a global variable accessible across files? Explain the extern keyword? 7.what is a function prototype? 8.what does keyword 'extern' mean in a function declaration?
What is the function of multilevel pointer in c?
what is an array
What is function and its example?
Why use int main instead of void main?
Is there a way to switch on strings?
Why is C language being considered a middle level language?