logo

Crowdly

What is the output of the following program? struct node { int data; str...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What is the output of the following program?

struct node

{

int data;

struct node *next;

};

 

main()

{

struct node N1, N2, N3;

N1.data = 1; N2.data = 10; N3.data = 100;

N1.next = &N2; N2.next = &N3; N3.next = &N1;

printf("%d, %d", N2.next -> data, N2.next -> next -> data);

}

More questions like this

Want instant access to all verified answers on moodle.lnmiit.ac.in?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!