

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How many levels of pointers can we have in C/C++?
Actually, C programs one or two static levels of pointers are common. Triple indirection is rare. But infinite is very common. Infinite pointer indirection can be achieved with the help of a struct.
struct list { struct list *next; ... } lst; lst->next->next->next->...->next
and in this way we can implement multiple pointer indirection.
There is another alternative notation as shown below
– *(*(..(*(*(*lst).next).next).next...).next).next
- Related Questions & Answers
- How many destructors can we have in one class in C#?
- How many parameters can a lambda expression have in Java?
- How many public classes of the same name it can have in Java?
- In how many ways we can concatenate Strings in Java?
- How many times can we sum number digits in JavaScript
- Can we have generic constructors in Java?
- Pointers, smart pointers and shared pointers in C++
- In how many ways can we split a string in JavaScript?
- C++ program to count how many minutes we have to wait to meet at least one swimmer
- Can we have a constructor private in java?
- Program to find how many total amount of rain we can catch in Python
- How many values does javascript have for nothing?
- Applications of Pointers in C/C++
- Can we have integers as elements of an enum in Java?
- C++ program to count in how many ways we can paint blocks with two conditions
Advertisements