# 3i Infotech Papers: Sample Questions 445 - 447 of 1245

Examrace Placement Series prepares you for the toughest placement exams to top companies.

## Question number: 445

### Write in Short

Is this code legal?

int * ptr;

ptr = (int *) 0 × 400;

### Explanation

• In these code

 int * ptr; Define the integer pointer ptr. ptr = (int *) 0 × 400; The pointer ptr will point at the integer in the memory location 0 × 400

## Question number: 446

Essay Question▾

### Describe in Detail

What is the output of the following program?

1. `main ()`
2. `{`
3. `    int i = 5, j = 10;`
4. `    i = i& = j&&10;`
5. `    printf ( “%d %d”, i, j);`
6. `}`

### Explanation

In the program

 int i = 5, j = 10; Given the integer variable i = 5 and j = 10 i = i& = j&&10; The expression can be written as i= (i&= (j&&10) ); The inner expression (j&&10) evaluates to 1 because j==10 and i is 5. i = 5&1 is 1. printf (“%d % d”, i, j); Print the value of i and j- 1 and 10.

## Question number: 447

What is Brouter?

### Explanation

• A network device that works as a bridge and a router.

• The brouter routes packets for known protocols and simply forwards all other packets as a bridge.

• Bridge connects one local area network to another local area network using the same protocol.

• Term describes a bridge combined with router device- brouters are rarely used.

• Functionality is often implemented using the router’s software interface.