TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Priyamtheone
NA
63
0
What is the counterpart of this C pointer programme in C#?
Mar 18 2021 4:04 PM
I'd like to know how the following program on pointer written in C can be written in C#, especially how to use the keywords in the C program like &i and *p in C#. Please clarify.
void
f(
int
*p,
int
*q)
{
p = q;
*p = 2;
}
int
i = 0, j = 1;
int
main()
{
f(&i, &j);
printf(
"%d %d \n"
, i, j);
return
0;
}
Reply
Answers (
2
)
How to delete unchecked value
Why get Error when I start Black Android Project in Visual studio 2015