251 251

, 2.

351 351

, 3.

251 351

, 4.

351 251

">
MCQs > IT & Programming > Embedded C >

What will be the output of the following program?

#include <stdio.h>

struct st1

{

int a;

struct st1 *ptr1 ;

};

main( )

{

struct st1 w1,w2;

w1.a = 251 ;

w2.a = 351 ;

w1.ptr1 = &w2 ;

w2.ptr1 = &w1 ;

printf ( "%d %d", w1.ptr1 –> a, w2.ptr1 –> a ) ;

}


Embedded C MCQs

What will be the output of the following program?

#include <stdio.h>

struct st1

{

int a;

struct st1 *ptr1 ;

};

main( )

{

struct st1 w1,w2;

w1.a = 251 ;

w2.a = 351 ;

w1.ptr1 = &w2 ;

w2.ptr1 = &w1 ;

printf ( "%d %d", w1.ptr1 –> a, w2.ptr1 –> a ) ;

}


Answer

Correct Answer:

351 251

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Embedded C Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Embedded C Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it