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


Please Help Members By Posting Answers For Below Questions

What is the purpose of main( ) in c language?

849


What does the c in ctime mean?

759


Can we use any name in place of argv and argc as command line arguments?

801


Who invented bcpl language?

909


When should the volatile modifier be used?

869






Explain b+ tree?

814


Is fortran still used today?

780


explain what are actual arguments?

806


Was 2000 a leap year?

813


Explain what are the different file extensions involved when programming in c?

819


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

1133


a c code by using memory allocation for add ,multiply of sprase matrixes

2505


Explain how can a program be made to print the name of a source file where an error occurs?

918


What is the use of volatile?

812


What is integer constants?

777