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
Pointers
c++
cpp
pointer
ptr
10 Votes
33 Answers
13th Aug 2018, 12:45 AM
Harry
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
[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
Android studio Tutorial
0 Votes
Why output is 0 for from_chars
1 Votes
run python
0 Votes
'while' and 'for' count corn differently. How can I make both programs count the same?
1 Votes
How to re -structure code for single responsibility
1 Votes
Using media folder in android 11 and up
1 Votes
Kotlin vs Java for Android app development
1 Votes
math equation
2 Votes
Coding problems
1 Votes
coding error
0 Votes