#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 |
implement NAND gate logic in C code without using any bitwise operatior.
How to use c/c++ code in JAVA
10 Answers CDAC, IBM, Satyam, Scope International,
Explain the process of converting a Tree into a Binary Tree.
how should functions be apportioned among source files?
How can I pad a string to a known length?
Derive the complexity expression for AVL tree?
what are two categories of clint-server application development ?
Explain how do you list files in a directory?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
When is the “void” keyword used in a function?
What are the different types of C instructions?
Write a C program to count the number of email on text