#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 |
find the sum of two matrices and WAP for it.
for questions 14,15,16,17 use the following alternatives:a.int b.char.c.string.d.float
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
How do you define a function?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
Can you apply link and association interchangeably?
Is array name a pointer?
How many types of arrays are there in c?
What is a string?
What is the difference between text files and binary files?
program to locate string with in a string with using strstr function
Write a program to swap two numbers without using the third variable?