How does atoi function work?
No Answer is Posted For this Question
Be the First to Post Answer
What are advantages of C++ when comparing with C?
18 Answers HP, iGate, TCS,
Write a program to interchange 2 variables without using the third one.
What is :: operator in c++?
1)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea += sizeof(int); } return 0; } 2)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea ++; } return 0; } The output of this two programs will be different why?
Given a simple program designed to take inputs of integers from 1-1000 and to output the factorial value of that number, how would you test this program? You do not have access to the code. Please be as specific as possible.
Define a nested class.
What is searching? Explain linear and binary search.
Using a smart pointer can we iterate through a container?
How can we access protected and private members of a class?
Write a corrected statement in c++ so that the statement will work properly. if (x > 5); y = 2*x; else y += 3+x;
What are the uses of typedef in a program?
Can we use clrscr in c++?