| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| How can I allocate arrays or structures bigger than 64K? | | 4 |
| can we access one file to one directory? | | 1 |
| How can I access memory located at a certain address? | | 2 |
| What is the main differences between C and Embedded C? | | 2 |
| hello friends
what do u mean by BUS ERROR
i got this error while i am doing my program in DATA STRUCTURES | Wipro | 2 |
| Every time i run a c-code in editor,
getting some runtime error and editor is disposing,
even after reinstalling the software
what may be the problem? | | 2 |
| How to set a variable in the environment list? | | 1 |
| How can I invoke another program from within a C program? | | 6 |
| Write a program to print all the prime numbers with in the
given range | ABC | 1 |
| 7. Identify the correct argument for the function call
fflush() in ANSI C:
A)stdout
B)stdin
C)stderr
D)All the above
| Accenture | 8 |
| write a program to arrange the contents of a 1D array in
ascending order | | 3 |
| How can I return multiple values from a function? | | 4 |
| Which of the following is not an infinite loop ?
a.while(1){
....
}
b.for(;;){
...
}
c.x=0;
do{
/*x unaltered within theloop*/
...
}while(x==0);
d.# define TRUE 0
...
while(TRUE){
....
}
| TCS | 4 |
| what does the following function print?
func(int i)
{
if(i%2)return 0;
eale return 1;
}
main()
{
int =3;
i=func(i);
i=func(i);
printf("%d",i);}
| TCS | 8 |
| how to estimate the disk access time?
e.g. the time between read one byte and another byte in the
disk. | Google | 3 |
| How to convert a binary number to Hexa decimal number??
(Note:Do not convert it into binary and to Hexadecimal) | Subex | 1 |
| How do I access command-line arguments? | Wipro | 2 |
| 11. Look at the Code:
#include<string.h>
void main()
{
char s1[]="abcd";
char s2[10];
char s3[]="efgh";
int i;
clrscr();
i=strcmp(strcat(s3,ctrcpy(s2,s1))strcat(s3,"abcd"));
printf("%d",i);
}
What will be the output?
A)No output B) A Non Integer C)0 D) Garbage
| Accenture | 7 |
| Determine if a number is a power of 2 at O(1). | | 1 |
| Write a program that takes three variables(a,b,c) in as
separate parameters and rotates the values stored so that
value a goes to b,b,to c and c to a | | 3 |
| |
| For more C Interview Questions Click Here |