IS it possible to define a zero sized array in c.if it is
possible how can the elements of that array can be
accessed.array index starts from zero,if it is possible to
define zero sized array how can be its first element can be
accesseed.
Answer Posted / crazzybouy
#include<stdio.h>
int main(){
int a[0];
printf("%d",sizeof(a));
}
~
| Is This Answer Correct ? | 10 Yes | 11 No |
Post New Answer View All Answers
What is extern keyword in c?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
how do you programme Carrier Sense Multiple Access
Explain what are compound statements?
Can the curly brackets { } be used to enclose a single line of code?
What are loops in c?
plz let me know how to become a telecom protocol tester. thank you.
Are pointers integer?
State the difference between realloc and free.
What is the difference between constant pointer and constant variable?
Is this program statement valid? INT = 10.50;
Can you subtract pointers from each other? Why would you?
Explain what standard functions are available to manipulate strings?
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
Why isn't it being handled properly?