#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 / ramesh

u will get error like incompatible types in assignment

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is wrong in this statement?

642


Why use int main instead of void main?

608


What are the different types of objects used in c?

584


Can the size of an array be declared at runtime?

622


Why do we use null pointer?

614






What are the basic data types associated with c?

823


Tell us two differences between new () and malloc ()?

618


What are the rules for identifiers in c?

597


Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc

5068


How can I use a preprocessorif expression to ?

612


An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above

713


What is a constant and types of constants in c?

607


What is the acronym for ansi?

641


Combinations of fibanocci prime series

1121


What is the use of #include in c?

587