Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

What is sizeof return in c?

0 Answers  


How do you view the path?

0 Answers  


12. Look at the Code: main() { int a[]={1,2,3},i; for(i=0;i<3;i++) { printf("%d",*a); a++; } } Which Statement is/are True w.r.t the above code? I.Executes Successfully & Prints the contents of the array II.Gives the Error:Lvalue Required III.The address of the array should not be changed IV.None of the Above. A)Only I B)Only II C)II & III D)IV

4 Answers   Accenture,


Unsigned char c; for ( c=0;c!=256;c++2) printf("%d",c); No. of times the loop is executed ?

8 Answers   Mascot, TCS,


write a program that finds the factorial of a number using recursion?

13 Answers   Infosys, TATA,


simple program of graphics and their output display

0 Answers   Elysium,


main() {int i=5; // line 1 i=(++i)/(i++); // line 2 printf("%d",i); // line 3 } output is 2 but if we replace line 2 and line 3 by printf("%d",i=(++i)/(i++)); then output is 1. Why?

1 Answers   GATE,


What are runtime error?

0 Answers  


What is the use of extern in c?

0 Answers  


int arr[] = {1,2,3,4} int *ptr=arr; *(arr+3) = *++ptr + *ptr++; Final contents of arr[]

6 Answers   Hughes,


Differentiate between null and void pointers.

0 Answers   TCS,


What is difference between && and & in c?

0 Answers  


Categories