| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| parkside's triangle..
create a program like this..
enter the size: 6
enter the seed: 1
output:
1
23
456
7891
23456
789123
sample2:
enter the size: 5
enter the seed: 3
output:
3
45
678
9123
45678
parkside should not exceed 10 while its seed should only be
not more than 9.. | | 3 |
| Why doesn't the code "int a = 1000, b = 1000;
long int c = a * b;" work? | | 4 |
| Give me basis knowledge of c , c++... | | 4 |
| write a own function for strstr | LG-Soft | 1 |
| what is the difference between <stdio.h> and "stdio.h" | Kanbay | 5 |
| implement general tree using link list | Wipro | 1 |
| without a terminator how can we print a message in a printf
() function. | NIIT | 3 |
| what is array? | HCL | 6 |
| HOW TO HANDLE EXCEPTIONS IN C | | 4 |
| What are the preprocessors? | HP | 3 |
| WAP to accept rollno,course name & marks of a student &
display grade if total marks is above 200? | | 2 |
| write a function to find whether a string is palindrome or
not and how many palindrome this string contain? | | 1 |
| i want to know aptitude questions,technical questions | | 1 |
| I have a function which accepts a pointer to an int. How
can I pass a constant like 5 to it? | | 3 |
| hat is a pointer? | Assurgent | 3 |
| 10. Study the code:
void show()
main()
{
show();
}
void show (char *s)
{
printf("%sn",s);
}
What will happen if it is compiled & run on an ANSI C
Compiler?
A)It will compile & nothing will be printed when it is
executed
B)it will compile but not link
C)the compiler will generate an error
D)the compiler will generate a warning
| Accenture | 4 |
| what is the use of pointers | | 4 |
| Design a program using an array that searches a number if it
is found on the list of the given input numbers and locate
its exact location in the list. | | 3 |
| #define DCHAR char*
typedef char* TCHAR;
if using these following variables will be declared like
DCHAR ch1, ch2;
TCHAR ch3, ch4;
then what will be types of ch1, ch2, ch3 and ch4?
| NDS | 1 |
| main()
{
float a=8.8;
double b=8.8;
if(a==b)
printf("Equal");
else
printf("not equal");
getch();
}
what is the output?
with reason | | 1 |
| |
| For more C Interview Questions Click Here |