Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Sign In
▲
Similar Topics
C++
4.2k+ articles
C Language
2.1k+ articles
C Quiz
280+ articles
cpp-pointer
93 articles
C-Pointers
74 articles
Pointers
44 articles
pointer
20 articles
cpp-references
17 articles
C-Pointer Basics
16 articles
C-Advanced Pointer
13 articles
Advanced Pointer
13 posts
Popular Articles
Recent Articles
Difference between constant pointer, pointers to constant, and constant pointers to constants
Last Updated: 17 October 2022
In this article, we will discuss the differences between constant pointer, pointers to constant constant pointers to constants. Pointers ar
...read more
pointer
C++
Pointers
Advanced Pointer
C-Pointer Basics
C++ Programs
Why do we need reference variables if we have pointers
Last Updated: 01 December 2021
Pointers: A pointer is a variable that holds memory address of another variable. A pointer needs to be de referenced with * operator to acce
...read more
pointer
cpp-references
cpp-pointer
C Language
C++
C-Pointers
Pointers
C++-References
References
C-Advanced Pointer
Advanced Pointer
C-Pointer Basics
Picked
Different ways to use Const with Reference to a Pointer in C++
Last Updated: 04 April 2020
Before moving forward with using const with Reference to a Pointers, let us first see what they are one by one: Pointers are used to stor
...read more
cpp-references
cpp-pointer
C++
C++-const keyword
Advanced Pointer
C++ Programs
Similar Topics
C++
4.2k+ articles
C Language
2.1k+ articles
C Quiz
280+ articles
cpp-pointer
93+ articles
C-Pointers
74+ articles
Pointers
44+ articles
pointer
20+ articles
cpp-references
17+ articles
C-Pointer Basics
16+ articles
C-Advanced Pointer
13+ articles
What is a Pointer to a Null pointer
Last Updated: 16 June 2022
NULL pointer in C At the very high level, we can think of NULL as a null pointer which is used in C for various purposes. Some of the most c
...read more
pointer
cpp-pointer
C Language
C-Pointers
Pointers
C-Advanced Pointer
Advanced Pointer
C-Pointer Basics
cpp-double-pointer
C | Advanced Pointer | Question 10
Last Updated: 28 June 2021
Output of following program[sourcecode language="C"]#include stdio.hint fun(int arr[]) { arr = arr+1; printf(%d , arr[0]);}int main(
...read more
C Language
C Quiz
C-Advanced Pointer
Advanced Pointer
C | Advanced Pointer | Question 9
Last Updated: 28 June 2021
[sourcecode language="C"]#include stdio.h#include stdlib.hint main(void){ int i; int *ptr = (int *) malloc(5 * sizeof(int)); for (i
...read more
C Language
C Quiz
C-Advanced Pointer
Advanced Pointer
C | Advanced Pointer | Question 8
Last Updated: 28 June 2021
[tabby title="C"][sourcecode language="c"][/sourcecode][tabbyending] (A)2 3 5 6(B)2 3 4 5(C)4 5 0 0(D)none of the abo
...read more
C Language
C Quiz
C-Advanced Pointer
Advanced Pointer
C | Advanced Pointer | Question 7
Last Updated: 28 June 2021
Assume that the size of int is 4.[sourcecode language="C"]#include stdio.hvoid f(char**);int main(){ char *argv[] = { ab, cd, ef, gh, ij,
...read more
C Language
C Quiz
C-Advanced Pointer
Advanced Pointer
C | Advanced Pointer | Question 5
Last Updated: 28 June 2021
Predict the output[sourcecode language="C"]#include string.h#include stdio.h#include stdlib.hvoid fun(char** str_ref){ str_ref++;}int mai
...read more
C Language
C Quiz
C-Advanced Pointer
Advanced Pointer
C | Advanced Pointer | Question 4
Last Updated: 28 June 2021
[sourcecode language="C"]#include stdio.hchar *c[] = {GeksQuiz, MCQ, TEST, QUIZ};char **cp[] = {c+3, c+2, c+1, c};char ***cpp = cp;int main(
...read more
C Language
C Quiz
C-Advanced Pointer
Advanced Pointer
C | Advanced Pointer | Question 3
Last Updated: 28 June 2021
[sourcecode language="C"]#include stdio.hint main(){ int a[5] = {1,2,3,4,5}; int *ptr = (int*)(a+1); printf(%d %d, *(a+1), *(ptr-1)
...read more
C Language
C Quiz
C-Advanced Pointer
Advanced Pointer
C | Advanced Pointer | Question 2
Last Updated: 28 June 2021
Assume sizeof an integer and a pointer is 4 byte. Output?[sourcecode language="C"]#include stdio.h#define R 10#define C 20int main(){ int
...read more
C Language
C Quiz
C-Advanced Pointer
Advanced Pointer
C | Advanced Pointer | Question 1
Last Updated: 28 June 2021
[tabby title="C"][sourcecode language="c"]void fun(int *p) { int q = 10; p = } int main() { int r = 20; int *p = fun(p);
...read more
C Language
C Quiz
C-Advanced Pointer
Advanced Pointer
1
1
1
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !