#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 / 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 |
Post New Answer View All Answers
How many types of errors are there in c language? Explain
What are the benefits of c language?
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
main() { printf("hello"); fork(); }
What is new line escape sequence?
What is the maximum no. of arguments that can be given in a command line in C.?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
What is function and its example?
Here is a neat trick for checking whether two strings are equal
What is #include stdlib h?
What is the difference between far and near in c?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
What is meant by inheritance?
What is the collection of communication lines and routers called?
How do you view the path?