#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


Please Help Members By Posting Answers For Below Questions

What is void main ()?

614


What is a stream water?

659


Explain what header files do I need in order to define the standard library functions I use?

649


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.

1481


How can I insert or delete a line (or record) in the middle of a file?

576






What is the difference between new and malloc functions?

581


c program for searching a student details among 10 student details

1657


What are preprocessor directives in c?

639


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

679


What are the rules for the identifier?

673


which is conditional construct a) if statement b) switch statement c) while/for d) goto

740


What are static variables in c?

630


Can we initialize extern variable in c?

635


How will you delete a node in DLL?

686


why wipro wase

1832