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 |
Who is the father of os?
RAM chips arranged in 4X6 array and of 8kX4bit capacity each. How many address lines reqd. to access each byte a. 12 b. 16 c.15 d. 17
hello, I want a chart which compare all scheduling algorithm performance. I want to know even they act better for I/O bound process or CPU bound process. please guide me how can I recognize the difference of scheduling algorithm? please send me the answer to : moradisomayeh@gmail.com
What are the main functions of a kernel?
How do you fix a blue screen?
How do I know when chkdsk is done?
How do I copy a full file path?
What is meant by arm-stickiness?
What are the problems can stack based management in recursive calling of functions?
What is the difference between shared memory and distributed memory?
Explain how a copying garbage collector works. How can it be implemented using semispaces?
What are the different memories you know about? Which of them takes the shortest access time?