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

Answers were Sorted based on User's Feedback



#include<string.h> void main() { String s1[]={"swathi"}; string s2[]={"madd..

Answer / vivek mathan

THE ANSWER IS "ERROR";

Is This Answer Correct ?    12 Yes 1 No

#include<string.h> void main() { String s1[]={"swathi"}; string s2[]={"madd..

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

#include<string.h> void main() { String s1[]={"swathi"}; string s2[]={"madd..

Answer / madhavi

%d

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is pivot in c?

0 Answers  


What is New modifiers?

0 Answers   NA,


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

0 Answers  


Is c# a good language?

0 Answers  


How many header files are in c?

0 Answers  






Can you assign a different address to an array tag?

0 Answers  


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

0 Answers  


Write a simple program to find the size of different basic data types in C.

3 Answers  


#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }

0 Answers   Wilco,


What are the three constants used in c?

0 Answers  


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

0 Answers   Gopaljee, TCS,


9.how do you write a function that takes a variable number of arguments? What is the prototype of printf () function? 10.How do you access command-line arguments? 11.what does ‘#include<stdio.h>’ mean? 12.what is the difference between #include<> and #include”…”? 13.what are # pragma staments? 14.what is the most appropriate way to write a multi-statement macro?

4 Answers   L&T,


Categories