No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
I would like to know what is the difference betn getchar(),getch(), and getche() functions and which should be used in which conditions. Thanks, comwizz. :confused: |
|
clrscr() is usually given after the declaration of all variables. If it is given before the declaration(of variables), the compiler points out an error. Why is this due to ? Will there be any problem in allocating the required amount of memory if at all clrscr() is given before the … |
|
Can anyone explain the difference between * ptr++ and ++ *ptr ? To my understanding, * ptr++ increments the pointer and not the value pointed by it and ++ *ptr increments the value being pointed by it. Does the former mean incrementing the address of the pointer ? Please explain. … |
|
can anyone please tell me the function of calloc() and malloc() and the difference between them ... what does (char*)malloc(n) mean ?? |
|
Re:
The basic purpose of the program is for the user to enter 10 numbers, then the program to add them all up as they are entered until it gets to 10 numbers entered which at that point it divides total by 10. [code] #include "stdafx.h" #include <iostream> using namespace std; … |