|
|
INTERVIEW QUESTIONS
LANGUAGES
C DETAILS
Question :
What will be the output of the following program in UNIX OS with CC compiler and TC compiler?
int main() { int i=5; printf("
%d",++i + ++i + ++i + ++i + ++i ); } If any difference then Why it is difference?
|
|
|
Related Questions |
View Answer |
 |
union u1 { int i; char c; }u2; u2.i=32767; u2.c='a'; now the i value gets replaced. If we want to know the data that is saved in the union..internally, without knowing what values that we are using in the prog.
that is if just want to know whether a union currently holds an int or a char? If it is a combination of both int and char..we must know even that. and the memory locations at which this data is stored?
|
View Answer |
 |
When function say abc() calls another function say xyz(), what happens in stack?
|
View Answer |
 |
How to remove duplicate elements from an array
|
View Answer |
 |
main(int x).............
explaination on arguments passed thr' main
|
View Answer |
 |
How do you write a C program which can calculate lines of code but not counting comments?
|
View Answer |
 |
How to swap the content oftwo variables without a temporary variable
|
View Answer |
 |
Output of this Programme please??
main() {
int a[]={2,4,6,8,10}; int i; change(a,5); for(int i=0;i<=4;i++) printf("
%d", a[i]); }
change(int *b,int n) {
int i; for(i=0;i *(b+i) = *(b+i)+5; }
sytaxis correct?? was asked i a test
|
View Answer |
 |
Can we use string in switch statement?
|
View Answer |
 |
How can you calculate number of nodes in a circular Linked List?
|
View Answer |
 |
What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?
|
View Answer |
Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.
| Notify me when better answer is posted!
|
View ALL C Interview Questions
|
|
|