#include<stdio.h>
main()
{
char s1[]="Ramco";
char s2[]="Systems";
s1=s2;
printf("%s",s1);
}
Find the output

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

655


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

634


How are pointers declared in c?

592


FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.

1196


in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above

630






What is the purpose of sprintf?

615


What are comments and how do you insert it in a C program?

737


What is boolean in c?

603


What are two dimensional arrays alternatively called as?

653


write a program in c language to print your bio-data on the screen by using functions.

6243


What is difference between %d and %i in c?

689


Here is a neat trick for checking whether two strings are equal

562


What does a function declared as pascal do differently?

603


How do you override a defined macro?

697


How can I prevent another program from modifying part of a file that I am modifying?

606