#include<stdio.h>
main()
{
char s1[]="Ramco";
char s2[]="Systems";
s1=s2;
printf("%s",s1);
}
Find the output
Answers were Sorted based on User's Feedback
Answer / vignesh1988i
it will be an error as for as i know... since s1 is not a
pointer variable... but however array are implict
pointers.... here we cant assign the base address to
another arry which is capable of holding oly values not
addressses...............
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / geo
Lvalue error.
if char *s1="Ramco";
char *s2="Systems";
s1=s2; is used
ans: Systems
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / mahadev shinde
ncompatible types in assignment of `s2' to `s1'
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / ankit garg
it will give an error bcoz here we do not give the header
file for string ( #include<string.h>) ... and we can not
use the string without it....
| Is This Answer Correct ? | 1 Yes | 2 No |
what is the use of ~ in c lang?????
What is false about the following A compound statement is a.A set of simple statments b.Demarcated on either side by curly brackets c.Can be used in place of simple statement d.A C function is not a compound statement.
Explain the ternary tree?
Describe newline escape sequence with a sample program?
why should i select you?
Explain the differences between public, protected, private and internal.
Write a program that takes a 5 digit number and calculates 2 power that number and prints it
Do pointers store the address of value or the actual value of a variable?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
What is the use of header?
How do I send escape sequences to control a terminal or other device?
c program to print a name without using semicolon