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
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 []);
What is the acronym for ansi?
Can we access the array using a pointer in c language?
What is the difference between NULL and NUL?
Why is c fast?
What are the different types of control structures in programming?
What is function pointer c?
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
Differentiate between null and void pointers.
How does #define work?
What do you mean by c what are the main characteristics of c language?
State the difference between x3 and x[3].
What is the difference between call by value and call by reference in c?
What do mean by network ?
Explain how can I convert a string to a number?