iSoft Placement Papers - C Questions

iSoft Placement Papers - C Questions


Q1. Decode
.a=5,b=3,c=a,b
d=(a,b)
printf(c,d)


Q2. e(int n)
{
if(n>0)
{
...(not clear)
printf("%d",n);
e(--n);
}
return
}

Q3. Where is the error in the program
int *f1()
{
int n;
return (n)
}

int *f2()
{
int *p;
*p=3;
return p;
}

int *f3()
{
int *p;
p=malloc();
return p;
}

Q4. What does the header file contain?

Q5. When is the size of operator executed?

Q6. *p+=1
*p++
are these two same?

Q7. What is the following program for?
func(int i)
{
static int count;
count=count+i;
}

Q8.what is the value of a short int?

Q9. int num[3];
num[3]=2;

What do the statements stand for?

Q10. What is output of J?
j=4
for(int i=0;i<5;i++)
{
j++;
++j;
}

Q11. char s1[20]="hello world";
s1[5]="";
printf("%d",strlen(s1));
printf("%%.%...(not clear)",s1);
}

Q12. What is the use of a brace in C?

Q13. How are parameters passed in C?

Q14. How is an array passed in c?

Q15. What does the following command read?

Q16. What in C can be passed to subroutine?

Q17. What has to be commanded in C to get strings of words?

Q18. How can external variables be accessed?
Post your comment