• Register

Recent posts tagged pointers

19 1 2 min.
Passing  strings in C:Early programmers find it harder to understand the improvements of the pointer than the original concept. When we say that such and such a variable pointer, what does it mean? You have hardly seen a variable anywhere. ...
posted 1 day ago Tania 632 points
3 0 1 min.
C++ PointersGiven a string of lowercase english alphabets. The task is to count number of vowels present in a string using pointers.Initialize the string using a character array.Create a character pointer and initialize it with the first element in a...
posted May 7 Ahsan29 143 points
3 0 1 min.
C++ PointersIn C++, pointers are variables that store the memory addresses of other variables.This program declares the array of five element and the elements of that array are accessed using pointer.To understand this example, you should have the kn...
posted May 7 Ahsan29 143 points
3 0 4 min.
C++ PointersIn C++, pointers are variables that store the memory addresses of other variables.Here is how we can declare pointers.int *pointVar; Here, we have declared a pointer pointVar of the int type.We can also declare pointers in the follow...
posted May 7 Ahsan29 143 points
0 0 1 min.
Void is a keyword used in C++ which specifies that a function does not return a value. Also, when used in a function, it means that the functions take no parameters. Similarly, if used in declaration of a pointer, void specifies that the pointer is u...
posted Sep 6, 2020 Lalit Kumar 1,240 points
16 0 1 min.
Pointers are good to have in your program. But also can be difficult to learn. “Indirection Requires Pointer Operand ('Int' Invalid)” is an error which occur because of a pointer. I give the cause and the solution of the e...
posted Sep 6, 2020 Lalit Kumar 1,240 points
0 0 1 min.
An array of pointers is an indexed set of variables which act as pointers i.e. referencing a location in the computer's memory or addressing some other element. The relevance of such pointers is to enhance creation, use and destroying all types o...
posted Aug 11, 2020 Lalit Kumar 1,240 points
0 0 3 min.
Errors are the mistakes or faults in the program that cause our program to behave unexpectedly and it is no doubt that the well versed and experienced programmers also make mistakes. Sometimes the cause of the error is small enough to be ignored and ...
posted Jun 30, 2020 Lalit Kumar 1,240 points
16 0 2 min.
Errors are the mistakes or faults in the program that cause our program to behave unexpectedly and it is no doubt that the well versed and experienced programmers also make mistakes.Sometimes the cause of the error is small enough to be ignored and t...
posted Jun 26, 2020 Lalit Kumar 1,240 points
0 0 2 min.
The problem we are going to discuss today is “How to get the number of elements in an array in C++”. First of all we will discuss the approach or the algorithm and then we will write a program to do so.ApproachUsing size operatorWe know t...
posted Jun 18, 2020 Lalit Kumar 1,240 points
0 0 4 min.
C and C + + don't allow you to return multiple values. For example, as I told previously that we cannot return an array as an argument, that means we are not allowed to return multiple values in C and C++.How to return multiple values in C++?Now ...
posted May 6, 2020 Lalit Kumar 1,240 points
0 0 1 min.
Can you return an array from a function C++?So let’s start with our question: can we return an array from a function in C++? So here is the thing in C++ there are some rules like there are some things C++ allows and some not. C++ does not allow...
posted Apr 24, 2020 Lalit Kumar 1,240 points
11 0 1 min.
How to access a local variable from a  different function using pointers? We cannot access a local variable from a different function using pointers because at this point local variables are out of scope and due to the limitations of pointe...
posted Apr 8, 2020 Lalit Kumar 1,240 points
5 0 2 min.
Pointer Variable and Reference VariablePointer A variable that holds the memory address of another variable.Reference The reference variable is an alternate name for another existing variable. Differences Initializationwe can decl...
posted Apr 6, 2020 Lalit kumar
To see more, click for the full list of questions or popular tags.