Go through the following code sinippet
char a[20];
a="Hello Orcale Test";
will this compile?

Answer Posted / jaisai

No...
Compile time error will occur says

"left operand must be l-value"

alternatively

char *a;
a="Hello Orcale Test";

will compile....

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is 'bus error'?

641


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

1840


Which built-in library function can be used to match a patter from the string?

739


What will be the outcome of the following conditional statement if the value of variable s is 10?

755


What are c header files?

573






What is function what are the types of function?

554


Why calloc is better than malloc?

570


What is the difference between text and binary modes?

639


What is pragma in c?

623


why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above

605


Explain the properties of union.

607


How macro execution is faster than function ?

660


What are types of functions?

559


How do you list files in a directory?

559


Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon

1730