#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 a constant?
What do you mean by command line argument?
Explain what are compound statements?
What is a pointer and how it is initialized?
Explain how can a program be made to print the name of a source file where an error occurs?
Do you know the purpose of 'register' keyword?
In which header file is the null macro defined?
swap 2 numbers without using third variable?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
What are the different properties of variable number of arguments?
Difference between strcpy() and memcpy() function?
How can I read and write comma-delimited text?
When can a far pointer be used?
Explain the term printf() and scanf() used in c language?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }