example :


#include <stdio.h>

main()

{

    int x = 5;

    while (x --> 0) 

    {

        printf("%d ", x);

  " />


example :


#include <stdio.h>

main()

{

    int x = 5;

    while (x --> 0) 

    {

        printf("%d ", x);

  " />

info@thistimebd.com

Thursday 21st of November 03:49:21pm

--> operator mean in C/C++ ?

This is not operator here one have "decrement operator(--)" and one have greater than(>)..


example :


#include <stdio.h>

main()

{

    int x = 5;

    while (x --> 0) 

    {

        printf("%d ", x);

    }

getch();

}

output: 4 3 2 1 0

firstly x=4 because of x--, x decrement 1 then check > operator . if true it access

then 3,2,1,0




Related tag:

What is the “-->” operator in C/C++?

c c++ problem

operator 

--> operator mean in C/C++ ?

What is the --> operator in C?

What is the --> operator in C++?

-->

program solve

operators in c