Close Menu
  • Analog Design
    • Latest Analog Layout Interview Questions (2025)
  • Digital Design
    • Digital Electronics Interview Question(2025)
    • Top VLSI Interview Questions
  • Physical Design
    • Physical Design Interview Questions for VLSI Engineers
  • Verilog
    • Verilog Interview Questions(2024)
  • Forum
Facebook Instagram YouTube LinkedIn WhatsApp
SiliconvlsiSiliconvlsi
Forum Questions Register in Forum Login in Forum
Facebook Instagram YouTube LinkedIn WhatsApp
  • Analog Design
    • Latest Analog Layout Interview Questions (2025)
  • Digital Design
    • Digital Electronics Interview Question(2025)
    • Top VLSI Interview Questions
  • Physical Design
    • Physical Design Interview Questions for VLSI Engineers
  • Verilog
    • Verilog Interview Questions(2024)
  • Forum
SiliconvlsiSiliconvlsi
Home»What is –> operator in C?

What is –> operator in C?

In the C programming language, the arrow operator “->” is used to access members of a structure or union through a pointer.

In C, a structure is a user-defined data type that can contain multiple variables of different types. When you have a pointer to a structure, you can use the arrow operator to access the members of that structure using the pointer.

The conditional’s code decrements x, while returning x’s original value, and then compares the original value with 0 using the > operator.

–> is not an operator. It is in fact two separate operators, — and >.

 

Example:

#include <stdio.h>
#include <conio.h>
void main()
{
 int x = 10;
while( x --> 0 ) 
     {
       printf("%d ", x);
     }
getch();
}

 

What is Arrow operator in C
What is Arrow operator in C
Facebook X (Twitter) Instagram Pinterest Vimeo YouTube
  • About Us
  • Contact Us
  • Privacy Policy
© 2025 Siliconvlsi.

Type above and press Enter to search. Press Esc to cancel.