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

Explain what are reserved words?

635


Explain the use of bit fieild.

715


Is array name a pointer?

607


what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9

1431


What are the advantages of union?

628






Once I have used freopen, how can I get the original stdout (or stdin) back?

629


what will be the output for the following main() { printf("hi" "hello"); }

9336


Under what circumstances does a name clash occur?

692


Can we assign string to char pointer?

589


What do you mean by Recursion Function?

633


Can a function argument have default value?

674


a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

613


What does #pragma once mean?

690


What are the advantages and disadvantages of a heap?

714


What is LINKED LIST? How can you access the last element in a linked list?

633