| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is the output of the following program?
#include<stdio.h>
void main()
{
int x=4,y=3,z;
z=x-- -y;
printf("\n%d %d %d",x,y,z);
} | | 10 |
| What is the main differences between C and Embedded C? | | 2 |
| convert 12345 to 54321 withoutusing strig | | 3 |
| what is the differance between pass by reference and pass
by value. | Infosys | 4 |
| Difference between fopen() and open()? | Aricent | 3 |
| write a program to compare 2 numbers without using logical
operators? | IBM | 1 |
| 1,1,5,17,61,217,?,?. | | 3 |
| Hai why 'c' is the middle language | | 2 |
| Why data types in all programming languages have some range?
Why ritche have disigned first time likethat?Why not a
single data type can support all other types? | Excel | 1 |
| class foo {
public:
static int func(const char*& p) const;
};
This is illegal, why? | Google | 6 |
| What is the memory allocated by the following definition ?
int (*x)[10];
| ADITI | 3 |
| print the following using nested for loop.
5 4 3 2 1
1 2 3 4
3 2 1
1 2
1
2 1
1 2 3
4 3 2 1
1 2 3 4 5 | | 5 |
| HOW CAN ADD OUR FUNCTION IN LIBRARY. | | 5 |
| To what value do nonglobal variables default?
1) auto
2) register
3) static
| | 4 |
| what is the use of call back function in c?tell me with
example | | 1 |
| WRITE A PROGRAM TO FIND A REVERSE OF TWO NO | | 5 |
| How can I read a directory in a C program? | Wipro | 1 |
| How many ways are there to swap two numbers without using
temporary variable? Give the each logic. | | 6 |
| what is the function of void main()? | | 6 |
| 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 |
| |
| For more C Interview Questions Click Here |