struct aaa{

struct aaa *prev;

int i;

struct aaa *next;

};

main()

{

struct aaa abc,def,ghi,jkl;

int x=100;

abc.i=0;abc.prev=&jkl;

abc.next=&def;

def.i=1;def.prev=&abc;def.next=&ghi;

ghi.i=2;ghi.prev=&def;

ghi.next=&jkl;

jkl.i=3;jkl.prev=&ghi;jkl.next=&abc;

x=abc.next->next->prev->next->i;

printf("%d",x);

}

Answer Posted / susie

Answer :

2

Explanation:

above all statements form a double circular linked list;

abc.next->next->prev->next->i

this one points to "ghi" node the value of at
particular node is 2.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a simple calculator c program to perform addition, subtraction, mul and div.

3134


Sir... please give some important coding questions asked by product companies..

1793


write a program for area of circumference of shapes

2026


why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?

2251


how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns

3117






To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']

488


Design an implement of the inputs functions for event mode

2953


could you please send the program code for multiplying sparse matrix in c????

3063


Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange

2853


why nlogn is the lower limit of any sort algorithm?

2364


Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ?

3840


What is full form of PEPSI

1855


In a gymnastic competition, scoring is based on the average of all scores given by the judges excluding the maximum and minimum scores. Let the user input the number of judges, after that, input the scores from the judges. Output the average score. Note: In case, more than two judges give the same score and it happens that score is the maximum or minimum then just eliminate two scores. For example, if the number of judges is 5 and all of them give 10 points each. Then the maximum and minimum score is 10. So the computation would be 10+10+10, this time. The output should be 10 because 30/3 is 10.

2372


how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.

2133


Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines

3018