#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 |
Tell me the use of bit field in c language?
Write a program using two-dimensional array that lists the odd numbers and even numbers separately in a 12 input values.
What is the use of bitwise operator?
How are variables declared in c?
What is the use of f in c?
In C program, at end of the program we will give as "return 0" and "return 1", what they indicate? Is it mandatory to specify them?
What is string function c?
What's a good way to check for "close enough" floating-point equality?
Result of the following program is main() { int i=0; for(i=0;i<20;i++) { switch(i) case 0:i+=5; case 1:i+=2; case 5:i+=5; default i+=4; break;} printf("%d,",i); } } a)0,5,9,13,17 b)5,9,13,17 c)12,17,22 d)16,21 e)syntax error
write a c program to store and print name,address,roll.no of a student using structures?
Write a c program to print the even numbers followed by odd numbers in an array without using additional array
What is the purpose of macro in C language?