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
What is call by reference in functions?
Explain what are multibyte characters?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
Compare interpreters and compilers.
shorting algorithmS
Explain what are the __date__ and __time__ preprocessor commands?
What is quick sort in c?
Is using exit() the same as using return?
What is character constants?
What are keywords in c with examples?
What is the g value paradox?
Why do we use return in c?