#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
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
write a proram to reverse the string using switch case?
Which is the best website to learn c programming?
What are Macros? What are its advantages and disadvantages?
What is #line used for?
How can you tell whether two strings are the same?
Explain how do you declare an array that will hold more than 64kb of data?
Explain what is the difference between null and nul?
How arrays can be passed to a user defined function
What do you mean by a sequential access file?
Add Two Numbers Without Using the Addition Operator
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
How do you determine a file’s attributes?
What type of function is main ()?
how many key words availabel in c a) 28 b) 31 c) 32