#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
What is non linear data structure in c?
What are qualifiers?
What is wrong with this declaration?
What is mean by data types in c?
What is the difference between char array and char pointer?
What is meant by recursion?
how to write optimum code to divide a 50 digit number with a 25 digit number??
What is equivalent to ++i+++j?
What are integer variable, floating-point variable and character variable?
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
Is array name a pointer?
How do I use void main?
can we change the default calling convention in c if yes than how.........?
What is scope and lifetime of a variable in c?
What are different types of operators?