Vyom World.com Let's Touch the Sky Together!

 Home VyomWorld.com Home Interview Questions VyomLinks.com Home JobsAssist.com Home Vyom Network Contact Us Jobs & Careers Resume Submitter Placement Papers IT Companies Directory Computer Jobs Interview Questions Online Exams Vyom Career eMag. Fun Send FREE SMS! SMS Jokes Source Codes Library Source Codes Home ASP Source Codes C Source Codes C++ Source Codes COBOL Source Codes Java Source Codes Pascal Source Codes Submit Source Codes GATE GATE an Overview GATE Preparation Study Materal GRE GRE an Overview GRE Questions GRE Preparation GRE Universities TOEFL Preparation TOEFL Resources GMAT Preparation GMAT Resources MBA Preparation MBA Resources Networking Concepts Networking Concepts Testing Preparation Testing Resources Webmasters Free Traffic Builder Webmaster Articles Web Hosting Tutorials Hardware Tutorial 1500 Free eBooks New!
 Get 30,000 Interview Questions & Answers in an eBook.
 Interview Success Kit - 30,000 Interview Que. & Ans.
Home » Placement Papers » subex Placement Papers »Sonata Placement Paper 4

# Subex Placement Paper

Some Technical Questions

1. void main()
{
enum bool{true,false};
if(true==(2==3)
printf(�..
else
printf(�..
}

2.  void main()
{
printf(�%d�,(float)3/2);
}

3. void main()
{
int (*func)(const *char)=strlen;
printf(�%d�, func(�Hello�);
}

4. void main() {
char *s=�Hello World�;
printf(�%c�,s);
}

5. File fp,fs;
fp=fopen(�tc.dat�,�w�);
fs=fopen(�tc.dat�,�w�);
putch(�A�,fp);
putch(�B�,fs); What will happen?

6. What is the equivalent of a[i] Ans: *(a+i)

7. int (*func)(int,int) is a pointer to a function with 2 integers as parameters and  returning an integer value.

8. int *(*func)(int *,int *) is a pointer to a function with 2 integer pointers as parameters and returning a pointer to

an integer Which of a and b is true?
Ans: Both are true.

9. switch(float value)  this is compiler error.

10. int a[5]={1,2,3,4,5};
int *p=a+1;
int *q=a+5;

int dif=q-p;
value of dif is 4  ( q-p is evalueated as q-p/sizeof int)

11. Switch(NULL)
ans: case 0: will be executed.

12. #define exp 5
printf("%d",exp++);
ans: compilation error lvalue required

13.  strcat(str,str);

ans: compilation error

14. Pointers can be subtracted from each other, can be added, constant cab be added or subtrated from pointer, but multipilcation with constant to pointer is not possible.

15. int(*ptr)[10]   pointer to array of 10 integers.

....

Recently Updated: New Placement Papers added.
Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Programming & Source Codes | GRE Preparation | Jobs, Discussions | Software Listing | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | International Business Information | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | FAQs | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Excellent Mobiles | Software Testing | Interview Questions | Freshers Jobs | Server Insiders | File Extension Directory