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

How do you define structure?

563


Explain how can I right-justify a string?

618


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2300


What is maximum size of array in c?

581


What is the use of #include in c?

570






Explain the difference between call by value and call by reference in c language?

643


What are the loops in c?

589


Write a code to generate a series where the next element is the sum of last k terms.

730


What is the role of this pointer?

545


What is d'n in c?

630


Can a pointer be volatile in c?

531


Write a program to check palindrome number in c programming?

596


Explain what are global variables and explain how do you declare them?

635


Explain what are the __date__ and __time__ preprocessor commands?

590


Explain how do you convert strings to numbers in c?

591