Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

#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


Please Help Members By Posting Answers For Below Questions

What's the difference between constant char *p and char * constant p?

1148


How do I determine whether a character is numeric, alphabetic, and so on?

1131


what are # pragma staments?

2043


What is scope rule of function in c?

1092


Can true be a variable name in c?

1039


How can I find out how much free space is available on disk?

1056


What is array in C

1156


What is file in c preprocessor?

1145


What are the restrictions of a modulus operator?

1121


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.

2073


in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none

1099


How to write a code for reverse of string without using string functions?

2145


Can the curly brackets { } be used to enclose a single line of code?

1171


What is difference between structure and union in c?

989


What is #line in c?

1014