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...


main()
{
charstr1="prakash";
charstr2="raju";
Str1=str2;
printf("\n%d",str1);
}

Answers were Sorted based on User's Feedback



main() { charstr1="prakash"; charstr2="raju"; Str1=str2; printf("\n%d&..

Answer / kk

Error
An array of string cannot be directly assigned to other;
soln: char *str1="prakash"
char *str2="raju"
str1=str2;

Is This Answer Correct ?    17 Yes 2 No

main() { charstr1="prakash"; charstr2="raju"; Str1=str2; printf("\n%d&..

Answer / naman patidar

compile time error at line 3 and 4.
can not assign string to char ( i.e. to str1 and str2).

Is This Answer Correct ?    14 Yes 3 No

main() { charstr1="prakash"; charstr2="raju"; Str1=str2; printf("\n%d&..

Answer / app

Error
Since address of different strings are compared

Is This Answer Correct ?    2 Yes 0 No

main() { charstr1="prakash"; charstr2="raju"; Str1=str2; printf("\n%d&..

Answer / kas

well the program will run finely ... with some warnings
of course ...

This is what I got as "out put" of the program using Fedora13...

Warning: multi-character character constant
In function 'main'
Warning: overflow in implicit constant conversion ...

But the RESULT was given as the ASCII of the last character
of the second string ..
That is in this case the answer will be "117";
Hope it helps ... :D

Is This Answer Correct ?    1 Yes 0 No

main() { charstr1="prakash"; charstr2="raju"; Str1=str2; printf("\n%d&..

Answer / ashok kumar

error

Is This Answer Correct ?    0 Yes 0 No

main() { charstr1="prakash"; charstr2="raju"; Str1=str2; printf("\n%d&..

Answer / vignesh1988i

ascii value of 'r' will get printed

Is This Answer Correct ?    0 Yes 6 No

main() { charstr1="prakash"; charstr2="raju"; Str1=str2; printf("\n%d&..

Answer / vignesh1988i

may i know the reason for this error

Is This Answer Correct ?    0 Yes 7 No

Post New Answer

More Operating Systems General Concepts Interview Questions

What are the 5 basic filing systems?

0 Answers  


What is an OS? Explain it to a layman.

0 Answers   Adobe,


What are dynamic loading, dynamic linking and overlays?

0 Answers  


Explain the refresh operation in a dynamic ram?

0 Answers  


What is the state of processor, when a process is waiting for some event to occur?

3 Answers  


Can I use x86 on 64bit?

0 Answers  


What is belady's anomaly?

0 Answers  


What is ex and vi?

0 Answers  


How much ram can a 64 bit os use?

0 Answers  


Explain thread.

0 Answers  


How do I search for a file?

0 Answers  


Is it ok to interrupt chkdsk?

0 Answers  


Categories