Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Programming Questions
If I use the following printf() to print a long int why I am not warned about the type mismatch? printf ("%d",num );
How would you use qsort() function to sort an array of structures?
What will be output of following c code? #include int main() { int i; for(i=10;i<=15;i++){ while(i){ do{ printf("%d ",1); if(i>1) continue; }while(0); break; } } return 0; }
What will be output of following c code? void main() { struct bitfield { unsigned a:5; unsigned c:5; unsigned b:6; }bit; char *p; struct bitfield *ptr,bit1={1,3,3}; p=&bit1; p++; clrscr(); printf("%d",*p); getch(); }
What will be output when you will execute following c code? #include enum actor { SeanPenn=5, AlPacino=-2, GaryOldman, EdNorton }; void main() { enum actor a=0; switch(a) { case SeanPenn: printf("Kevin Spacey"); break; case AlPacino: printf("Paul Giamatti"); break; case GaryOldman:printf("Donald Shuterland"); break; case EdNorton: printf("Johnny Depp"); } }
Write a c program to create dos command type.
Why we use do-while loop in c?
Swap two variables without using third variable.
Write a program to generate the Fibonacci series in c?
C program to find the factorial of a given number
Write a c program to check whether a number is strong or not.
Write a c program to print multiplication table
Write a c program for selection sort.
Write a c program for quick sort.
Write a c program for insertion sort.
Write a c program for merge sort.
Write a c program for binary search.
Write a program for matrix multiplication in c
Write a c program to copy a data of file to other file.
What will be output of following c code? void main() { struct india { char c; float d; }; struct world { int a[3]; char b; struct india orissa; }; struct world st ={{1,2,3},'P','q',1.4}; clrscr(); printf("%dt%ct%ct%f",st.a[1],st.b,st.orissa.c,st.orissa.d); getch(); }
1
2
3
4
5
6