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
How do you define structure?
Explain how can I right-justify a string?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
What is maximum size of array in c?
What is the use of #include in c?
Explain the difference between call by value and call by reference in c language?
What are the loops in c?
Write a code to generate a series where the next element is the sum of last k terms.
What is the role of this pointer?
What is d'n in c?
Can a pointer be volatile in c?
Write a program to check palindrome number in c programming?
Explain what are global variables and explain how do you declare them?
Explain what are the __date__ and __time__ preprocessor commands?
Explain how do you convert strings to numbers in c?