#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 an example of enumeration?
Can you apply link and association interchangeably?
print the following using nested for loop. 5 4 3 2 1 1 2 3 4 3 2 1 1 2 1 2 1 1 2 3 4 3 2 1 1 2 3 4 5
Explain what is meant by high-order and low-order bytes?
With the help of using classes, write a program to add two numbers.
Are enumerations really portable?
what is diff between localstatic and globalstatis variable possible 2 use in another file...?
Can a pointer be static?
Is c functional or procedural?
Why array starts with index 0
Explain the advantages of using macro in c language?
What is the use of #include in c?