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 a stream water?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
What is && in c programming?
What is the return type of sizeof?
Is that possible to store 32768 in an int data type variable?
How can I write a function analogous to scanf?
what will be the output for the following main() { printf("hi" "hello"); }
What is the difference between union and anonymous union?
What are pointers? What are stacks and queues?
Why void is used in c?
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
Why is c not oop?
program to convert a integer to string in c language'
Explain which function in c can be used to append a string to another string?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }