vatsava


{ City } bangalore
< Country > india
* Profession *
User No # 45938
Total Questions Posted # 0
Total Answers Posted # 4

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 29
Users Marked my Answers as Wrong # 4
Questions / { vatsava }
Questions Answers Category Views Company eMail




Answers / { vatsava }

Question { 4269 }

What is the scope of static variables?


Answer

Local to the block

Is This Answer Correct ?    4 Yes 1 No

Question { 3452 }

what is the use of ‘auto’ keyword?


Answer

scope of the auto keyword is local to the block in which
the variable is defined.

for ex:
main()
{
auto int i=1;
{
auto int i=2;
{
auto int i=3;
printf("%d",i);
}
printf("%d",i);
}
printf("%d",i);
}
the op would be 321

Is This Answer Correct ?    4 Yes 3 No


Question { TCS, 4416 }

what does ‘#include’ mean?


Answer

This is a preprocessor directive & causes one file to be
included into another. Whenever we #include a file it
causes the entire contents of the file to be inserted into
the source code

Is This Answer Correct ?    20 Yes 0 No

Question { 4593 }

how to write a data 10 in address location 0x2000


Answer

int main()
{
int *ptr;
ptr = (int *)2000;
*ptr = 10;
printf("%d", *ptr);
}

Is This Answer Correct ?    1 Yes 0 No