int n[] = {0014,010,2,4,8,12};
                  int i;
                  for(i=0;i<6;i++)
                  {
                   printf(”%d”,n[i]);
                  }
                   What is the output of the above program?                (2m)
            q5) Find the output of the following program,
                  #define swap(x,y) x=x+y;y=x-y;x=x-y;
                  void main()
                  {
                   int x=5,y=10;
                   swap(x,y);
                   printf(”%d %d”,x,y);
                   swap1(x,y)
                   printf(”%d %d”,x,y);
                  }
                  int swap1(int x,int y);
                  {
                   int temp;
                   temp =x;
                   x=y;
                   y=temp;
                   return 0;
                  }                                                     (2m)
            q6) Consider the following code snippet,
                  void main()
                  {
                   char s=127;
                   unsigned char u;
                   s++;
                  }
                    (a) is s > 127?
                    (b) is s < u?                                       (1m)

Related Posts

  1. Geodesic Paper General – other Thadomal Shahani Engineering CollegeMumbai- 25 July 2008
  2. CTS Paper Whole Testpaper LBS college Of Engg. Trivandrum- 20 August 2006
  3. i-flex Paper Whole Testpaper BMS college of Eng Bangalore- 21 August 2006
  4. Satyam Paper Whole Testpaper K.S.R.M.COLLEGE OF ENGINEERING- 10 August 2006
  5. WIPRO Paper Whole Testpaper RGM College Nandyal- 11 August 2007