#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
Is c a great language, or what?
write a program to generate address labels using structures?
Is c++ based on c?
What are types of functions?
Why is c called c not d or e?
Are the variables argc and argv are local to main?
What is a list in c?
Explain 'bus error'?
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
Subtract Two Number Without Using Subtraction Operator
What is .obj file in c?
How does pointer work in c?
Explain is it valid to address one element beyond the end of an array?
Why does this code crash?
Are pointers integers in c?