#include<stdio.h>
main()
{
char s1[]="Ramco";
char s2[]="Systems";
s1=s2;
printf("%s",s1);
}
what will happen if you executed this code?
Answer Posted / sheetal
error will occur for l-value as left operand should be
pointer instead of array. Since assignment is always done
to pointer.
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What's the difference between constant char *p and char * constant p?
How do I determine whether a character is numeric, alphabetic, and so on?
what are # pragma staments?
What is scope rule of function in c?
Can true be a variable name in c?
How can I find out how much free space is available on disk?
What is array in C
What is file in c preprocessor?
What are the restrictions of a modulus operator?
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
How to write a code for reverse of string without using string functions?
Can the curly brackets { } be used to enclose a single line of code?
What is difference between structure and union in c?
What is #line in c?