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 is ptr = a; shows error?
2d
c
matrix
0 Votes
5 Answers
11th Apr 2019, 4:43 PM
Unemployed Visionary.
Why we can simply write like:- ptr =a;
pointers
2 Votes
2 Answers
12th May 2019, 3:20 AM
Aशीsh
friend func param obj ptr vs obj ref
c++
oop
pointers
reference-types
0 Votes
3 Answers
13th Aug 2019, 11:44 AM
BinaryEden
Is int* ptr a valid pointer declaration in C++
c++
0 Votes
6 Answers
25th May 2021, 4:10 PM
Lennart Krauch
C - Why does ptr points to first address "after" arr?
arrays
c
pointers
2 Votes
5 Answers
6th Jan 2020, 12:03 PM
Paolo De Nictolis
what is the difference between *ptr and int * ptr
c++
pointers
1 Vote
4 Answers
3rd Aug 2017, 8:56 AM
Eshaan Belani
obj ptr no needs point to previous created obj?
c++
oop
1 Vote
2 Answers
7th Aug 2019, 12:56 AM
BinaryEden
Is memory allocated for ptr variable in the given case?
me
stru
0 Votes
1 Answer
14th Sep 2020, 4:32 PM
rajshekhar y dodamani
What is the the different: 1. Ptr is an array of 12 pointers to integer. 2. Ptr is an array of 12 integer pointers?
pointers
1 Vote
1 Answer
11th Sep 2022, 6:04 AM
Oliver Pasaribu
Pointers
c++
cpp
pointer
ptr
10 Votes
33 Answers
13th Aug 2018, 12:45 AM
Harry
[linked list] What does this line mean ptr = (struct node)malloc(size of(struct node))
c
c++
0 Votes
1 Answer
3rd Nov 2016, 10:45 AM
Infinity
int a = 320; char *ptr; ptr = (char*)&a; printf("%d", *ptr); // how the output is 64? Please explain.
c
error
output
pointers
0 Votes
2 Answers
8th Aug 2021, 8:38 AM
NIKHIL JOSHI
Why its shows error while try to pass the value as normal interger a and b into the function update instead of passing ptr var?
pointers
0 Votes
1 Answer
25th Apr 2019, 5:46 PM
Sudha
Ask a question
Ask a question
Ask a question
Ask a question
Hot today
Is the AI course worth the $49?
0 Votes
Can anyone please help with this below code for python files
1 Votes
How private are "private" code snippets in Sololearn really?
1 Votes
Should I always mention name attribute inside <input type="" id="" name="" > ??
0 Votes
Where to use
0 Votes
Coding path
0 Votes
Scroll to bottom of page in Selenium with browser minimized
0 Votes
How to win bits
1 Votes
Blank screen when trying to but AI course on Apple 15 I phone,
0 Votes
Question on code instructionn course. Update: anwsered
1 Votes