int array[]={1,2,3,4,5,6,7,8};
#define SIZE (sizeof(array)/sizeof(int))
main()
{
if(-1<=SIZE) printf("1");
else printf("2");
}
Answer Posted / dnyaneshwar
1
| Is This Answer Correct ? | 3 Yes | 15 No |
Post New Answer View All Answers
What is call by reference in functions?
What is a list in c?
What functions are used for dynamic memory allocation in c language?
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
What are the disadvantages of a shell structure?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
What does %p mean?
Why isn't it being handled properly?
how do you programme Carrier Sense Multiple Access
What is malloc calloc and realloc in c?
What is a far pointer in c?
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
explain what are pointers?
What are header files? What are their uses?
What are the data types present in c?