second highest number in a given set of numbers
Answer Posted / kartik
Read the set of numbers in to an array ,sort it using bubble
sort(ascending order logic),the last but one number wil be
second highest number.....
| Is This Answer Correct ? | 9 Yes | 4 No |
Post New Answer View All Answers
What are global variables and explain how do you declare them?
What is structure packing in c?
What is extern storage class in c?
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
What is the difference between text and binary modes?
What are global variables?
Explain what does the function toupper() do?
Explain what header files do I need in order to define the standard library functions I use?
Explain how can I manipulate strings of multibyte characters?
What are structure members?
Differentiate between ordinary variable and pointer in c.
Why C language is a procedural language?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
I came across some code that puts a (void) cast before each call to printf. Why?
Differentiate between the expression “++a” and “a++”?