| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What's a "sequence point"? | | 2 |
| implement general tree using link list | Wipro | 1 |
| what is the diff b/w static and non static variables in C.
Give some examples plz. | Wipro | 2 |
| program for validity of triangle from 3 side | | 6 |
| What's wrong with the call "fopen ("c:\newdir\file.dat", "r")"? | | 1 |
| main()
{
printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3));
}
wat is the o/p and how? | | 7 |
| 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 |
| can you explain in brief what is "r+" mode in a file... i
know that it si used to read and modify rhe existing
content.... but explalanation about the file pointer in "r+"
mode i wann to know??????????? | Cognizent | 1 |
| write a program in c language for the multiplication of two
matrices using pointers? | Ignou | 5 |
| Write a program which take a integer from user and tell
whether the given variable is squar of some number or not.
eg: is this number is 1,4,9,16... or not
| Alcatel | 8 |
| 15.what is the disadvantage of using macros?
16.what is the self-referential structure?
17.can a union be self-referenced?
18.What is a pointer?
19.What is the Lvalue and Rvalue?
20.what is the difference between these initializations?
21.Char a[]=”string”;
22.Char *p=”literal”;
23.Does *p++ increment p, or what it points to? | CTS | 2 |
| what about "char *(*(*a[])())();"
| Oracle | 2 |
| can we access one file to one directory? | | 1 |
| What's the difference between a linked list and an array?
| | 11 |
| how to connect oracle in C/C++. | | 2 |
| how to make program without <> in library.
| ADITI | 1 |
| How to set a variable in the environment list? | | 1 |
| plz answer.. a program that takes a string e.g. "345" and
returns integer 345 | | 3 |
| 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 |
| write the program for maximum of the following numbers?
122,198,290,71,143,325,98 | | 4 |
| |
| For more C Interview Questions Click Here |