#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
Explain what is wrong in this statement?
Why use int main instead of void main?
What are the different types of objects used in c?
Can the size of an array be declared at runtime?
Why do we use null pointer?
What are the basic data types associated with c?
Tell us two differences between new () and malloc ()?
What are the rules for identifiers in c?
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
How can I use a preprocessorif expression to ?
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
What is a constant and types of constants in c?
What is the acronym for ansi?
Combinations of fibanocci prime series
What is the use of #include in c?