main()
{
charstr1="prakash";
charstr2="raju";
Str1=str2;
printf("\n%d",str1);
}
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / app
Error
Since address of different strings are compared
| Is This Answer Correct ? | 2 Yes | 0 No |
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 |
1)application programs interact with operating system through system call.is there any method of interaction between the two? 2) Inconveniences faced by user interacting with a computer systemwithout a operating system? 3) what are the requirements for virtual memory architecture
What are the advantage of using threads?
What are the basic functions of an Operating system?
What are the 7 c's of communication?
What do you mean by Belady's Anomaly. - Describe with example.
Will chkdsk fix bad sectors?
What are the benefits and losses of placing the functionality in a device controller rather than in placing it in the kernel?
Does 64 bit require uefi bios?
What is Direct Access Method?
How do I recover files from my usb?
What do you mean by a process?
What is the full form itc?