C Interview Questions
Questions Answers Views Company eMail

WAP to accept basic salary of an employee? Calculate it HRA=25%,DA=30%,PF=30%&net salary display all contents?

Wipro, Lovely Professional University, Finite Infotech,

6 23525

WAP to accept rollno,course name & marks of a student & display grade if total marks is above 200?

4 11352

WAP to accept first name,middle name & last name of a student display its initials?

NIIT, AITH,

5 12916




Blade logic interview question. 1st round is a written tests with 15 multiple questions from c and c++. All are simple basic question. Like int main () { Int i=65; Return printf(ā€œ%cā€, i); } 2nd and 3rd round is technical interview. The position for which I was interview was core UNIX and c. Yes it is for system programming. The company has product name blade server. For their server they are creating their own command for their purpose. Example cd command. We can implement it in a c program by using the chdir() function. So the question asks related to PID, fork, pipe, shared memory, signal. Write a program in c which will act as cp command.

BladeLogic, Infosys,

1 9296

who did come first hen or agg

Infosys,

15 8808

what is the function of .h in #include in c ?

HCL, IBM, Wipro,

23 24103

what is the difference between #include and #include"stdio.h" ?

TCS,

6 24531

main() { printf("hello%d",print("QUARK test?")); }

5 3626




main() { int i,j,A; for(A=-1;A<=1;A++) prinf("%d\t",!!A); }

6 3568

#define f(x) main() { printf("\n%d",f(2+2)); }

5 4029

what is the function of void main()?

8 22408

write an algorithm which can find the largest number among the given list using binary search ............... this was asked in the interview

Satyam, Wipro, UNIS,

2 11195

what is the difference between normal variables and pointer variables..............

HP, Infosys, Satyam, Vivekanand Education Society,

15 46069

what is a static function

Satyam,

10 7375

hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .

Aegis, CDAC, Infosys,

1119


Post New C Questions






Un-Answered Questions { C }

Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

926


write a proram to reverse the string using switch case?

1524


write a program to generate address labels using structures?

1570


Between macros and functions,which is better to use and why?

869


What is the difference between declaring a variable by constant keyword and #define ing that variable?

1648






You have given 2 array. You need to find whether they will create the same BST or not. For example: Array1:10 5 20 15 30 Array2:10 20 15 30 5 Result: True Array1:10 5 20 15 30 Array2:10 15 20 30 5 Result: False One Approach is Pretty Clear by creating BST O(nlogn) then checking two tree for identical O(N) overall O(nlogn) ..we need there exist O(N) Time & O(1) Space also without extra space .Algorithm ?? DevoCoder guest Posted 3 months ago # #define true 1 #define false 0 int check(int a1[],int a2[],int n1,int n2) { int i; //n1 size of array a1[] and n2 size of a2[] if(n1!=n2) return false; //n1 and n2 must be same for(i=0;ia1[i+1]) && (a2[i]>a2[i+1]) ) ) return false; } return true;//assumed that each array doesn't contain duplicate elements in themshelves }

1956


write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1

1320


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

1551


write a program to create a sparse matrix using dynamic memory allocation.

3593


What is your favorite subject?

184


can any one provide me the notes of data structure for ignou cs-62 paper

1029


How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include...

3923


write a progrmm in c language take user interface generate table using for loop?

863


what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

788


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

898