#include<stdio.h>
main()
{
char s1[]="Ramco";
char s2[]="Systems";
s1=s2;
printf("%s",s1);
}
what will happen if you executed this code?
Answers were Sorted based on User's Feedback
Answer / guest
error wud pop up because u cannot assign arrats or strings
to one another
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / ramesh
u will get error like incompatible types in assignment
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / 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 |
What is meaning of "Void main" in C Language.
24 Answers Ford, GU, HCL, IBIBS, JUW, TCS,
how to return 1000 variables from functio9n in c?plz give me code also
can we declare a function in side the structure?
What is the diffrent between while and do while statement ?
#include<stdio.h> main() { int a[3]; int *I; a[0]=100;a[1]=200;a[2]=300; I=a; Printf(“%d\n”, ++*I); Printf(“%d\n”, *++I); Printf(“%d\n”, (*I)--); Printf(“%d\n”, *I); } what is the o/p a. 101,200,200,199 b. 200,201,201,100 c. 101,200,199,199 d. 200,300
Which of the following is not a valid declaration for main ()? 1) int main() 2) int main(int argc, char *argv[]) 3) They both work
What is a c token and types of c tokens?
what is difference between c and c++
What is the difference between %d and %i?
What does *p++ do? What does it point to?
two progs are given. one starts counting frm 0 to MAX and the other stars frm MAX to 0. which one executes fast.
How to calculate sum