Subcategories for C Interview Questions & Answers :-
Following are sub categories for which Interview Questions & Answers are available under C Interview Questions & Answers. Please select the appropriate sub-category:-
Arrays in C Interview Questions & Answers (18) Exam Mode | Learning Mode
Branches & Loops in C Interview Questions & Answers (22) Exam Mode | Learning Mode
C Basics Interview Questions & Answers (92) Exam Mode | Learning Mode
Dynamic Memory Allocation in C Interview Questions & Answers (21) Exam Mode | Learning Mode
File Operations in C Interview Questions & Answers (16) Exam Mode | Learning Mode
Functions in C Interview Questions & Answers (59) Exam Mode | Learning Mode
Operators in C Interview Questions & Answers (22) Exam Mode | Learning Mode
Pointers in C Interview Questions & Answers (43) Exam Mode | Learning Mode
Strings in C Interview Questions & Answers (32) Exam Mode | Learning Mode
Structures in C Interview Questions & Answers (39) Exam Mode | Learning Mode
Variables in C Interview Questions & Answers (39) Exam Mode | Learning Mode
Previous 1 2 3 4 5 6 7 8 Next
Sort By :
Latest First | Oldest First | By Rating
|
Question |
Rating |
View Answer |
 |
What is the result of using Option Explicit ? |
|
View Answer |
 |
If the following program (myprog) is run from the command line as myprog friday tuesday sunday, What would be the output?
main(int argc, char*argv[]) { printf("%c",**++argv); }
|
|
View Answer |
 |
How can you get the number of elements in an array allocated dynamically at runtime? For example - int *p = (int *) malloc(sizeof(int) * n);
int numElems = ??????? /* n is not available here */
|
|
View Answer |
 |
main() { int i; float *pf; pf = (float *)&i; *pf = 100.00; printf("n %d", i); }
|
|
View Answer |
 |
main() { int i; clrscr(); for(i=0;i<5;i++) { printf("%dn", 1L << i); } }
|
|
View Answer |
 |
What is data independence? what is transaction process application? Discuss the main charecteristics of data approach how it differs from traditional file system! |
|
View Answer |
 |
What would be the output of the following program? main() { int i=4; switch(i) { default: printf("n A mouse is an elephant built by the Japanese"); case 1: printf(" Breeding rabbits is a hair raising experience"); break; case 2: printf("n Friction is a drag"); break; case 3: printf("n If practice make perfect, then nobody's perfect"); } }
|
|
View Answer |
 |
main() { int i =10, j = 20; clrscr(); printf("%d, %d, ", j-- , --i); printf("%d, %d ", j++ , ++i); }
|
|
View Answer |
 |
main() { int x=5; clrscr(); for(;x<= 0;x--) { printf("x=%d ", x--); } }
|
|
View Answer |
 |
What are enumerations? |
|
View Answer |
 |
What would be the output of the following program?
main() { int y=128; const int x=y; printf("%d",x); }
|
|
View Answer |
 |
main() { int i, j, *p; i = 25; j = 100; p = &i; // Address of i is assigned to pointer p printf("%f", i/(*p) ); // i is divided by pointer p }
|
|
View Answer |
 |
What is the difference between the following statements? int a[4]={1,2,3,4}; int a[]={1,2,3,4);
|
|
View Answer |
 |
If the following program (myprog) is run from the command line as myprog 1 2 3, What would be the output?
main(int argc, char *argv[]) { int i,j=0; for(i=0;i<argc;i++) j=j+ atoi(argv[i]); printf("%d",j); }
|
|
View Answer |
 |
Where is the prototype of the main function i.e how the execution startd from main function and how to find out the size of a function. |
|
View Answer |
 |
How to convert decimal to octal and hexadecimal? |
|
View Answer |
 |
How to write a 'C' program to read an array of 10 numbers and print the prime nums?
this is what i wrote could someone tell me where is my mistake? can i use here flag at all?
#include <stdio.h>
void main () { int arr[10], i, j, flag;
for (i=0;i<10;i++)
scanf ("%d", &arr[i]);
for (i=0;i<10;i++) { flag=1;
for (j=2;j<=(arr[i]/2); j++) { if (arr[i]%j==0) { flag=0; break;
} } }
for (i=0;i<10;i++) { if (flag=1)
printf ("%d", arr[i]); } |
|
View Answer |
 |
How should i rate on the basis of the basis of the scenario the insertion sort , bubble sort , Quick Sort? |
|
View Answer |
 |
Can we print values from 1 to 100 without using for,while,do-while,if etc.?answer should be logical. |
|
View Answer |
 |
How to do a simple program simulation of a Rotation game? A player chooses to move a box encompassing four numbers, and then chooses to either rotate the numbers clockwise or counterclockwise. |
|
View Answer |
Previous 1 2 3 4 5 6 7 8 Next
|