Can u return two values using return keyword? If yes, how?
If no, why?
Answer Posted / c.saranya
no. because return keyword return only one value.that ia 0
or 1.
| Is This Answer Correct ? | 15 Yes | 4 No |
Post New Answer View All Answers
With the help of using classes, write a program to add two numbers.
How can I run c program?
What math functions are available for integers? For floating point?
Explain what are its uses in c programming?
Write a code of a general series where the next element is the sum of last k terms.
How can I find out the size of a file, prior to reading it in?
Explain how can you be sure that a program follows the ansi c standard?
Is c dynamically typed?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
Where are c variables stored in memory?
How do you list a file’s date and time?
Why should I use standard library functions instead of writing my own?
What does the c preprocessor do?
Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.
What is function and its example?