(www.entrance-exam.net)-TEXAS Instruments Placement Sample Paper 1 - TEXAS Instruments Sample Paper What will be the output of the following code 1 void

(www.entrance-exam.net)-TEXAS Instruments Placement Sample Paper 1

This preview shows page 1 - 3 out of 52 pages.

TEXAS Instruments Sample PaperWhat will be the output of the following code? 1.void main (){ int i = 0 , a[3] ;a[i] = i++;printf (?%d",a[i]) ;} 2.Why doesn't the following code give the desired result?int x = 3000, y = 2000 ;long int z = x * y ; 3.Why doesn't the following statement work?char str[ ] = "Hello" ;strcat ( str, '!' ) ; 4.How do I know how many elements an array can hold? array of type int, float and char can have in case of Small memory model. 5.How do I write code that reads data at memory location specified by segment and offset?
Image of page 1
Image of page 2
Image of page 3

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture