#include<string.h>
void main()
{
String s1[]={"swathi"};
string s2[]={"maddimsetti"};
s1[]=s[];
printf("%s",s1[]);
}

Answer Posted / senthil

compilation error.

the following statement is wrong
s1[]=s[];

cannot change the value of array pointer s1

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above

677


If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above

624


How can my program discover the complete pathname to the executable from which it was invoked?

660


Why c language?

648


What are types of functions?

567






Can a pointer be static?

625


How to write a code for reverse of string without using string functions?

1580


main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above

615


What is meant by recursion?

632


What are the salient features of c languages?

625


Describe explain how arrays can be passed to a user defined function

605


Why n++ execute faster than n+1 ?

1851


differentiate built-in functions and user – defined functions.

628


What are keywords in c with examples?

604


Are there constructors in c?

595