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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I make a bootable usb drive?

559


Explain the concept of deadlocks? Why they are used?

632


How can I make usb bootable?

523


Who invented os?

555


Describe Recovery from Deadlock?

647






How do I see all files on my mac?

657


How does reference counting manage memory allocated objects?

530


What is trcd timing?

554


What is interprocess communication in os?

646


what are the softwares helping for auditing poblems?

1495


What resources are used when a thread created? How do they differ from those when a process is created?

521


How do you kill pid?

551


What is belady's anomaly?

546


What is the cause of thrashing? How does the system detect thrashing? Once it detects thrashing, what can the system do to eliminate this problem?

907


What is a sector?

532