#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 |
If the size of int data type is two bytes, what is the range of signed int data type?
write a program to display the array elements in reverse order in c language
What is the most efficient way to count the number of bits which are set in a value?
String concatenation
Who invented b language?
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
i want to job in your company, so how it will be possible.
What are the restrictions of a modulus operator?
why arithmetic operation can’t be performed on a void pointer?
Explain threaded binary trees?
What does return 1 means in c?
Explain what is the difference between far and near ?