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 the purpose of main( ) in c language?
What does the c in ctime mean?
Can we use any name in place of argv and argc as command line arguments?
Who invented bcpl language?
When should the volatile modifier be used?
Explain b+ tree?
Is fortran still used today?
explain what are actual arguments?
Was 2000 a leap year?
Explain what are the different file extensions involved when programming in c?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
a c code by using memory allocation for add ,multiply of sprase matrixes
Explain how can a program be made to print the name of a source file where an error occurs?
What is the use of volatile?
What is integer constants?