#include<stdio.h>
main()
{
char s1[]="Ramco";
char s2[]="Systems";
s1=s2;
printf("%s",s1);
}
what will happen if you executed this code?
Answers were Sorted based on User's Feedback
Answer / guest
error wud pop up because u cannot assign arrats or strings
to one another
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / ramesh
u will get error like incompatible types in assignment
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / 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 |
what is the difference between procedure oriented and object oriented progaming language
List some of the dynamic data structures in C?
How does free() know how many bytes to free?
What is exit() function?
EXPLAIN #INCLUDE<STDIO.H> EXPLAIN #INCLUDE<CONIO.H>
difference between spiral and waterfall model
why u join this call center?
What is structure data type in c?
advantages of pointers?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
Explain what is the heap?
convert 12345 to 54321 withoutusing strig