You are here:

C/Debugging!

Advertisement


Question
main()
{
int i;
clrscr();
printf("%d", &i)+1;
scanf("%d", i)-1;
}
a. Runtime error.
b. Runtime error. Access violation.
c. Compile error. Illegal syntax
d. None of the above
and wat is bit field?

Answer
Dear Kavitha !

Sure this program won't show any error's , thats because i didn't fine any syntax error's but the code +1 and -1 has no effect with respect to printf() and scanf() function .

So answer for this question is D.

>> what is bit field ?? this question seems irrelevant to that program , kindly i request you to revise the question !
if you think your question is correct ,  please explain your question in detail

Thanks and Regards !
Prince M. Premnath

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Prince M. Premnath

Expertise


I'm sure that I can solve any doubts in Turbo C ,Graphics Programing ,Mouse, Hardware Programming ,File System ,Interrupts, BIOS handling , TSR Programming , General Concepts in C Language, handling inline Assembly statements

Experience

Research over 6+ Years

Organizations
CG-VAK Softwares and Exports Limited

Education/Credentials
Masters in Computer Applications

©2012 About.com, a part of The New York Times Company. All rights reserved.