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

write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

1838


What is the acronym for ansi?

624


Can we access the array using a pointer in c language?

556


What is the difference between NULL and NUL?

721


Why is c fast?

601






What are the different types of control structures in programming?

655


What is function pointer c?

581


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

1779


Differentiate between null and void pointers.

627


How does #define work?

642


What do you mean by c what are the main characteristics of c language?

564


State the difference between x3 and x[3].

648


What is the difference between call by value and call by reference in c?

614


What do mean by network ?

649


Explain how can I convert a string to a number?

640