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 |
I want to install sql server as a database server and Oracle 10 I as a programming language for this i choose windows 2003 server as a operating system..ok.and come to hardware part i have 8 SATA hdd's each one has 300 gb of capacity. my requirement is i want to insert thease 8 hdds into a system by using RAID LEVELS(Leave about configuration). in Raid Levels which level will give 100% data backup(safe).if u give preferance for one purticular raid level please let me know what are the benfits with that Please suggest me with best answers.
Explain how a TP Monitor manages memory and processor resources more effectively than a typical operating system.
What are the different types of fragmentation?
What are residence monitors?
What are the differences between Real Time Operating System (RTOS) and General Purpose Operating Systems (GPOS)?
How does operating system kernel work?
How is the maximum addressable memory calculated?
Explain the Unix Kernel?
What is significance of semaphores? What are the different types of semaphores?
Does android run on x86?
Can x86 run 64 bit?
Difference between Primary storage and secondary storage?