#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 |
Write a program to reverse a given number in c?
code for concatination of 2 strings with out using library functions?
What does the format %10.2 mean when included in a printf statement?
which is an algorithm for sorting in a growing Lexicographic order
Under what circumstances does a name clash occur?
Write a C/C++ program that connects to a MySQL server and displays the global TIMEZONE.
convert 12345 to 54321 withoutusing strig
what r the cpu registers r ther?
in one file global variable int i; is declared as static. In another file it is extern int i=100; Is this valid ?
What is the diffences between Windows XP and Windows Visa
What are different types of operators?
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none