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

#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }

1135


write a proram to reverse the string using switch case?

2950


Which is the best website to learn c programming?

1079


What are Macros? What are its advantages and disadvantages?

1164


What is #line used for?

1028


How can you tell whether two strings are the same?

1258


Explain how do you declare an array that will hold more than 64kb of data?

1455


Explain what is the difference between null and nul?

1159


How arrays can be passed to a user defined function

1024


What do you mean by a sequential access file?

1085


Add Two Numbers Without Using the Addition Operator

828


illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question

2076


How do you determine a file’s attributes?

1087


What type of function is main ()?

1046


how many key words availabel in c a) 28 b) 31 c) 32

1081