#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

how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12

839


How can I open files mentioned on the command line, and parse option flags?

818


What do you mean by c what are the main characteristics of c language?

795


What is a function in c?

1188


What is wrong with this program statement?

783


Explain how do you override a defined macro?

808


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

824


Differentiate between static and dynamic modeling.

840


How does struct work in c?

813


What does emoji p mean?

793


What are the different types of constants?

835


What is volatile variable how do you declare it?

768


What is double pointer in c?

766


What is the scope of global variable in c?

753


What is a structure and why it is used?

850