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 |
How do I know if my motherboard is 32 bit or 64 bit?
What do you mean by multithreading?
In general what is paging? and segmaentation?
Which one is not suitable for client-server application? 1. tcp/ip 2. message passing 3. rpc 4. none of the above
How do I enable macros?
In the context of memory management, what are placement and replacement algorithms?
What are the different functions of Syntax phase, Scheduler?
Is it safe to cancel chkdsk?
Is operating system a software?
Can I use ie with google chrome?
How does the cpu and the ram communicate?
Explain the stipulations of c2 level security?