New course!
Every coder should learn
Generative AI!
Try a free lesson
Courses
Courses
Code Compiler
Code Compiler
Discuss
Get Pro
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
Why *ptr points to NULL?
c
pointers
1 Vote
3 Answers
1st Aug 2018, 11:48 PM
RainStorm
What is mean by that void *ptr in C?
https://www.sololearn.com/profile/4157142/?ref=app
2 Votes
2 Answers
29th Jul 2020, 10:39 AM
Aurnab Das
Can someone explain exactly wat *ptr is clearly please
pointers
1 Vote
2 Answers
25th Jun 2021, 11:38 AM
Jeremiahgustusjunior
what is the difference between *ptr and int * ptr
c++
pointers
1 Vote
4 Answers
3rd Aug 2017, 8:56 AM
Eshaan Belani
Isn't the line 1 and line 4 means the same that is in *ptr and hello both contain manash so why hello runs but *ptr doesn't?
c
0 Votes
4 Answers
3rd Nov 2021, 11:03 AM
Manash Anand
#include<stdio.h> int main() { char *ptr = "Hello"; printf("%c\n", *&*ptr); return 0; }
c
pointers
0 Votes
1 Answer
18th Jan 2021, 6:27 PM
yogesh
Why mostly in c program using pointer pointer is daclared in this way ? *ptr = NULL
c
pointers
1 Vote
4 Answers
6th Mar 2020, 8:17 AM
Yash Chaudhari
Can anyone help me... what is the difference between int *ptr and int **ptr.?
c++
pointers
0 Votes
2 Answers
25th Mar 2016, 3:15 PM
REIFFORD NONGBRI
The output is 55, but I don't understand why the memory address of the *ptr is 23fe3c.
address_arithmetic
c
memory_address
pointer
1 Vote
5 Answers
30th Dec 2018, 1:43 PM
Konybud
why we use the pointeur ?? and what is the different between *(ptr) and *ptr
c
c++
1 Vote
1 Answer
17th Apr 2020, 12:07 PM
Ahmed Ben Larbi
What's the difference between this {MyClass obj; MyClass *ptr = &obj;} and this {Myclass *ptr=new Myclass}?....
c++
2 Votes
1 Answer
2nd Sep 2022, 10:30 AM
Emediong Ekoh
#include <iostream> using namespace std; int main() { int x=10,y=20; int *ptr = &x; int &ref= y; *ptr++; ref++; cout<<x<<y
c++
code
output
0 Votes
9 Answers
4th Jul 2017, 8:26 AM
Kushagra Agarwal
But *ptr stores the actual value of the varible x right? Then why is it written *ptr=&x when it does not store its address.
pointers
2 Votes
3 Answers
23rd Oct 2019, 4:34 PM
shreya
what is the output of following program type def int integer # define int chat void main () { int i= 65; int *ptr = &i; int *j =
def
defi
following
int
integer#
of
output
programtype
the
whatis
-1 Vote
10 Answers
29th Sep 2021, 6:39 AM
Abubakar Sk
Why does Java not support multiple inheritance, operator overloading & pointers ?
*ptr
c++
jvm
operator-overloading
2 Votes
2 Answers
28th Jun 2017, 12:41 PM
rootX
Por qué o para que utilizo yo la posición de memoria de otra variable en los punteros? Int *ptr = &Var
c++
pointers
1 Vote
1 Answer
2nd Feb 2017, 4:45 AM
Diorostegui
what are advantages to use pointer?
*ptr
c++
classes
pointers
1 Vote
1 Answer
31st Oct 2016, 3:16 PM
Timur CELIK
Ask a question
Ask a question
Ask a question
Ask a question
Hot today
Isogram Detector
2 Votes
Need suggestions what improvements can I do in it
3 Votes
pls how do I write comments in code
0 Votes
What is the generally preferred way of assigning values in Python?
1 Votes
R programming
2 Votes
Hello
0 Votes
How to add shadow on text
0 Votes
Kotlin programing
0 Votes
Please help with Sololearn quiz challenge
0 Votes
Please help me understanding the output. I posted output with code in the file attached.
0 Votes