Write a code to determine the total number of stops an elevator would take to serve N number of people.
No Answer is Posted For this Question
Be the First to Post Answer
if a five digit number is input through the keyboard, write a program to calculate the sum of its digits. (hint:-use the modulus operator.'%')
1)which of following operator can't be overloaded. a)== b)++ c)?! d)<=
Write a program to check armstrong number in c?
What are Macros? What are its advantages and disadvantages?
Which node is more powerful and can handle local information processing or graphics processing?
what are the different storage classes in c?
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
Explain what is the use of a semicolon (;) at the end of every program statement?
a simple c program using 'for' loop to display the output 5 4 3 2 1
Just came across this question, felt worth sharing, so here it is I want you to make a C/C++ program that for any positive integer n will print all the positive integers from 1 up to it and then back again! Let's say n=5 I want the program to print: 1 2 3 4 5 4 3 2 1. Too easy you say? Okay then... You can ONLY USE: 1 for loop 1 printf/cout statement 2 integers( i and n) and as many operations you want. NO if statements, NO ternary operators, NO tables, NO pointers, NO functions!
wats SIZE_T meant for?
What is static memory allocation?