#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 / guest

error wud pop up because u cannot assign arrats or strings
to one another

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a program have two main functions?

871


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

2131


How do you list a file’s date and time?

835


hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?

1895


how to make a scientific calculater ?

1826


What do you mean by keywords in c?

912


write a program to find the given number is prime or not

4325


Explain the advantages of using macro in c language?

784


What are the disadvantages of external storage class?

832


What is strcpy() function?

893


Write a program to swap two numbers without using a temporary variable?

878


What is wrong with this code?

941


Where are c variables stored in memory?

829


Explain the difference between strcpy() and memcpy() function?

800


How can you find the exact size of a data type in c?

801