| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| plssssss help !!....using array.. turbo c..
create a program that will accept number of words to be
consored.
.a word must not exceed 10 characters long
.the text to be entered will be no longer than 200 characters
.there will be no 10 words
example:
enter number of words to be censor: 5
enter words to censor:
windows
office
microsoft
bill
gates
enter text to censor:
bill gates founded microsoft and makes office and windows
sample output:
<consored> <censored> founded <censored> and makes
<censored> and <censored> | | 1 |
| void main()
{
int s[4][2]={ {1234,56},{1212,33},{1434,80},{1312,78} };
int (*p)[2];
int i,j,*pint;
for(i=0;i<=3;i++)
{
p=&s[i];
pint=p;
printf("\n");
for(j=0;j<=1;j++)
printf("%d",*(pint+j));
}
} while running this program it shows a warning-suspicious
pointer conversion ie pint=p; my que is why should we assign
the value of p to pint again.why cant we use it directly as
*(p+j)..but if i use like tat the o/p is garbage value.. | | 1 |
| Define function ?Explain about arguments? | Geometric-Software | 2 |
| write a program to check whether a given integer is a strong
number or not?
[Hint:
145=1!+4!+5!
=1+24+120
=145]
| | 2 |
| what is meant by the "equivalence of pointers and arrays" in
C? | Satyam | 3 |
| When is an interface "good"?
| | 1 |
| what information does the header files contain? | BSNL | 5 |
| what is the difference between normal variables and pointer
variables.............. | Satyam | 7 |
| Explain what?s happening in the first constructor: public
class c{ public c(string a) : this() {;}; public c() {;} }
How is this construct useful?
| | 1 |
| 1)which of following operator can't be overloaded.
a)== b)++ c)?! d)<= | Siemens | 10 |
| how memory store byte
| Huawei | 3 |
| Can we write a program without main() function? | | 9 |
| main()
{
int a=0;
if(a=0) printf("Ramco Systems\n");
printf("India\n");
}
output? | Ramco | 6 |
| Dear Sir,
we are required the bubble sorting programs
Regs
Prem | | 1 |
| #ifdef TRUE
int I=0;
#endif
main()
{
int j=0;
printf("%d %d\n",i,j);
}
| ADITI | 2 |
| Is main() function predfined or userdefined? | | 7 |
| how many header file is in C language ? | | 14 |
| What is macro? | IBM | 4 |
| What is #pragma directive?how it is used in the program?
what is its advantages and disadvantages? | | 1 |
| how to make c program without a libary?
e.g.#include<stdio.h> libary is not in c progaram. | | 1 |
| |
| For more C Interview Questions Click Here |