#include<stdio.h>
main()
{
char s1[]="Ramco";
char s2[]="Systems";
s1=s2;
printf("%s",s1);
}
what will happen if you executed this code?
Answer Posted / sheetal
error will occur for l-value as left operand should be
pointer instead of array. Since assignment is always done
to pointer.
Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is void main ()?
What is a stream water?
Explain what header files do I need in order to define the standard library functions I use?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
How can I insert or delete a line (or record) in the middle of a file?
What is the difference between new and malloc functions?
c program for searching a student details among 10 student details
What are preprocessor directives in c?
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
What are the rules for the identifier?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
What are static variables in c?
Can we initialize extern variable in c?
How will you delete a node in DLL?
why wipro wase