Explain is it better to bitshift a value than to multiply by 2?
No Answer is Posted For this Question
Be the First to Post Answer
What is the difference between far and near in c?
in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above
write a string copy function routine?
Explain a pre-processor and its advantages.
Why is void main used?
how to set Nth bit of a variable?
Difference between pass by reference and pass by value?
is assignment operator is arithmatic or not
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!
What is the difference between the = symbol and == symbol?
what is the difference between <stdio.h> and "stdio.h"
14 Answers Invendis, Kanbay, Mastek, MathWorks,
What are global variables?