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 are terms in math?
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
What is difference between union All statement and Union?
how do you execute a c program in unix.
What is the difference between the expression “++a” and “a++”?
What will be the outcome of the following conditional statement if the value of variable s is 10?
How can I determine whether a machines byte order is big-endian or little-endian?
What is structure in c explain with example?
I came across some code that puts a (void) cast before each call to printf. Why?
Where define directive used?
How many types of arrays are there in c?
can we have joblib in a proc ?
Explain how do you use a pointer to a function?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code