-
Binary portability
What is code/binary portability?
-
C Interrupts
How are interrupts executed in C? Where are interrupts stored in the memory? What actually occurs when interrupts are encountered?
-
main()
{
int i;
clrscr();
printf("%d", &i)+1;
scanf("%d", i)-1;
}Main() { int i; clrscr(); printf("%d", &i)+1; scanf("%d", i)-1; }
A) Runtime error. Access violationB) Compile error. Illegal syntaxC) None of the aboveD) Runtime errorExplanation: printf( ) prints address/garbage of i, scanf() dont have & sign, so scans address for i +1, -1 dont have any effect on code.
-
-
-
-
-
Write a program to print the given integers in the corresponding wordings?
Say for eg. if 123 is given as input the output should be displayed as
-
Increment Operator
Explain why p++ is faster than p+1?
-
-
-
-
-
BSS Segment
What is BSS segment? Where it will be?
-
How to print all the possible combinations of a given integer ?
.for eg 12 is the entered no.then print 12, 21if 123 is entered nothen print 123, 231, 321, 132, 213, 312.
-
strncpy() & memcpy() function in C
what is the difference between strncpy()(not strcpy) & memcpy() function in C?
-
-
-
Do while() & while()
What is the minimum execution of do while() and while()?if there is a change why is it so?
-
C Interview Questions
Ans