| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| We can draw a box in cprogram by using only one printf();&
without using graphic.h header file? | NIIT | 3 |
| i want to have a program to read a string and print the
frequency of each character and it should work in turbo c | | 2 |
| what are the compilation steps?
( i want inside the compiler ) | | 1 |
| what is the defrenece between structure and union | | 5 |
| How many types of linked lists what are they?
How many types of data structures? | BSNL | 5 |
| writw a program to insert an element in the begning of a
doubly linked list | | 1 |
| HOW TO HANDLE EXCEPTIONS IN C | | 5 |
| What character terminates all strings composed of character
arrays?
1) 0
2) .
3) END
| | 3 |
| How to implement variable argument functions ? | HP | 1 |
| Switch (i)
i=1;
case 1
i++;
case 2
++i;
break;
case 3
--i;
Output of i after executing the program
| Mascot | 4 |
| Program to find the absolute value of given integer using
Conditional Operators | N-Tech | 2 |
| write a program for size of a data type without using
sizeof() operator? | | 7 |
| what is the difference between malloc() and calloc() function? | | 1 |
| Write a program for deleting duplicate elements in an array | Subex | 3 |
| write a addition of two no. program with out using
printf,scanf,puts . | | 3 |
| what will be the result of the following program ?
char *gxxx()
{
static char xxx[1024];
return xxx;
}
main()
{
char *g="string";
strcpy(gxxx(),g);
g = gxxx();
strcpy(g,"oldstring");
printf("The string is :
%s",gxxx());
}
a) The string is : string
b) The string is :Oldstring
c) Run time error/Core dump
d) Syntax error during compilation
e) None of these
| IBM | 2 |
| can we write a program in c for printf and scanf without
using header file stdio.h | | 1 |
| what is the difference between declaration ,defenetion and
initialization of a variable? | LG-Soft | 5 |
| what is diff between localstatic and globalstatis variable
possible 2 use in another file...? | HCL | 2 |
| what is the use of pointers | | 5 |
| |
| For more C Interview Questions Click Here |