GeekInterview.com
Series: Subject: Topic:

C Interview Questions

Showing Questions 1 - 20 of 51 Questions
First | Prev | | Next | Last Page
Sort by: 
 | 

What do you mean by "paridium"....?

Asked By: bcac2 | Asked On: Apr 8th, 2013

What should be returned at line commented "//insert here" so that code returns numbers in fibonacci sequence?

Asked By: lalithakasiraj | Asked On: Dec 15th, 2012

Code
  1. #include <stdio.h>
  2. int fib(n){
  3. if (n <= 2)
  4. return 1;
  5. else
  6. // insert here
  7. }

a) return fib(n) + fin(n-1); b) return fib(n-1) + fin(n-2); c) return fib(n) + fin(n+1); d) return fin(n-1);

Cprintf vs printf

Asked By: Ruhani Chawlia | Asked On: Oct 27th, 2012

Cprintf is defined to send formatted output to the text window on the screen. And printf directs its output to the stdout. What is the difference between stdout and a text window then? Does the screen serve differently while using cprintf and printf? Please explain

C compiler dependency

Asked By: arunkindra | Asked On: Jul 20th, 2012

Some questions answers are compiler dependent..So correct it, as in my test I observed the sizeof int is 2 bytes which was in 16bit compiler like turbo. Now world has moved to 32 bits, even 64 bits will coming near soon, so change ur test ans....

Want C program for this please.

Asked By: mak ryder | Asked On: Dec 17th, 2011

I need the code for this... Plz help me out... search C keyword; 1) the program will ask user to enter a file name (a C source file ) 2) software will open file and search C language keywords in file 3) it will print keywords and their count after traversing through whole file in following format; if...

C program using loop and array

Asked By: Mohammed Mahmood Almahdi | Asked On: Dec 7th, 2011

Write a C program using arrays and any loop statements that asks the user to enter the number of students. For each student, enter the number of courses. The user should enter the students id number and the marks for each course. Compute and display the total and average of the students marks. sample...

File handling in C++

Asked By: Niharika garga | Asked On: Jul 28th, 2011

What is the difference between the two statements: file.Write( reinterpret_cast(&pers), sizeof(pers) ); file1.Write( (char*) & pers, sizeof(pers );

Des - data encryption standard

Asked By: Sweetie | Asked On: Jul 24th, 2011

Hi.. Can anyone let me know the data encryption standard(des) code implementation in C language..!!

Reverse a sentence by entering every word by itself

Asked By: mrsjones247 | Asked On: Jun 16th, 2011

I need help creating an algorithm in Javascript for asking a user to input a sentence, one word at a time in reverse and then at the end the output would be the sentence in its correct form.

Recursive function to compute the number of sequences of n binary digits.

Asked By: souji1425 | Asked On: Jul 17th, 2006

How to write a recursive function to compute the number of sequences of n binary digits that do not contain two 1s in a row. Write a main function to test this function. Input:input consists of the number of binary digits in the sequence.Output:output consists of the number of sequences of given binary...

Reversing array of characters without indexing in the array

Asked By: rameshwar83 | Asked On: Feb 13th, 2007

How would you reverse a given array of characters and how would you reverse without indexing in the array?

What does it mean by "host connectivity application"?

Asked By: santosh | Asked On: Apr 27th, 2007

Find the factorial of given positive integer.

Asked By: Rujul | Asked On: Mar 9th, 2007

Consider the following code for finding the factorial of given positive integer IFAct=1 do 100 i=2,n,2 100 IFAct = IFAct*i*(i-1) for which value of n, the above fortran code will not work ? 1. N is even 2. N is odd 3. N is perfect number...

How can I do this using recursion ?

Asked By: Rooro | Asked On: Nov 7th, 2006

For the list class, add a boolean-valued function that determines whether the data items in the linked list are arranged in ascending order. How can I do this using recursion ?

What is spool templates, how it is counted?

Asked By: Amjith PS | Asked On: Oct 6th, 2006

Overload subscript operator

Asked By: muralib | Asked On: Sep 7th, 2006

How will you overload subscript operator with more than one dimension?

Matrix manipulation library in C

Asked By: Hinstings | Asked On: Aug 20th, 2006

Let's say you want to develop a matrix manipulation library in pure C (not c++). For example, you want to define a "matrix_multiply" function to get a * b, how to declare the function and how to implement it? Make sure that you consider error handling stuff, e.G., a 2*2 matrix and a 3*3 matrix cannot...

Program listing ip addresses of all active clients.

Asked By: umesh | Asked On: May 27th, 2006

Write a program which sends a token on network and give the list of ip addresses of all the client currently active ?(program is running on server)

Different ways of expressing the same idea.

Asked By: Beena | Asked On: Sep 15th, 2005

Main(){ char s[ ]="man"; int i; for(i=0;s[ I ];i++) printf("n%c%c%c%c",s[ I ],*(s+i),*(i+s),i[s]);} ans:mmmm aaaa nnnn explanation:s[i], *(i+s), *(s+i), i[s] are all different ways of expressing the same idea. Generally array name is the base address for that array. Here s is the base address. I is...

First | Prev | | Next | Last Page

 

 

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.