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

Answer Posted / vikraman.j

Compile time err wil occur;
We can use *a="Hello Orcale Test" or a[20]="Hello Orcale
Test";
It will lead the prg nice.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of typedef in structure in c?

546


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

676


How many identifiers are there in c?

583


Tell me what is null pointer in c?

615


What is conio h in c?

625






What do you mean by a local block?

632


What are lookup tables in c?

551


Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant

669


Describe wild pointers in c?

640


How can I recover the file name given an open stream or file descriptor?

598


Are there constructors in c?

598


What is character constants?

715


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1498


What is the use of printf() and scanf() functions?

636


Tell me can the size of an array be declared at runtime?

599