C Interview Questions
Questions Answers Views Company eMail

Define a structure to store roll no, name and marks of a student. Using the structure of above write a ‘C’ program to create a file “student.dat”. There must be one record for every student in the file. Accept the data from the user.

1527

What is the difference between void main() and void main (void) give example programme?

676

What is the proper way of these job Tell me about there full work

EDS,

647




Write a program to find the number of times that a given word(i.e. a short string) occurs in a sentence (i.e. a long string!). Read data from standard input. The first line is a single word, which is followed by general text on the second line. Read both up to a newline character, and insert a terminating null before processing. Typical output should be: The word is "the". The sentence is "the cat sat on the mat". The word occurs 2 times.

1190

write a reverse string to print a stars.(with out using logic) ***** **** *** ** *

2 987

What will be the result of the following C language program? main() { int a = 0; int b = 20; char x = 1; char y = 10; if(a,b,x,y) printf("Welcome"); }

1 938

main() { int ptr[] = {1,2,23,6,5,6}; printf("%d",&ptr[3]-&ptr[0]); }

Vector,

6 8016

The program to allow the characters from the input received and send this function to a function check if the characters between letters a to z is a function of y joins as the characters main and output to otherwise return to the original function of the y characters

550




Write a program that receives as input a number omaadel-n-print, four digits.

579

Table of Sudoku n*n

668

Magic square

599

Eight queens puzzle

609

Write a program that his output * *** *****

1 874

Write a program that his output 1 12 123

647

A program to write a number of letters and numbers, such as counting and display

636


Post New C Questions






Un-Answered Questions { C }

write a c program to calculate sum of digits till it reduces to a single digit using recursion

1892


stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

1042


a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.

2645


‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.

1168


In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)

820






Simplify the program segment if X = B then C ← true else C ← false

1809


all c language question

992


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

968


Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

844


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

868


Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

1248


ATM machine and railway reservation class/object diagram

4038


why return type of main is not necessary in linux

935


Write a C program linear.c that creates a sequence of processes with a given length. By sequence it is meant that each created process has exactly one child. Let's look at some example outputs for the program. Here the entire process sequence consists of process 18181: Sara@dell:~/OSSS$ ./linear 1 Creating process sequence of length 1. 18181 begins the sequence. An example for a sequence of length three: Sara@dell:~/OSSS$ ./linear 3 Creating process sequence of length 3. 18233 begins the sequence. 18234 is child of 18233 18235 is child of 18234 ........ this is coad .... BUt i could not compleate it .....:( #include #include #include #include int main(int argc, char *argv[]) { int N; pid_t pid; int cont; if (argc != 2) { printf("Wrong number of command-line parameters!\n"); return 1; } N = atoi(argv[1]); printf("Creating process sequence of length %d.\n",N); printf("%d begins the sequence.\n",getpid()); /* What I have to do next ?????? */ }

861


how to capitalise first letter of each word in a given string?

714