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.

2874

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

1521

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

EDS,

1336

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.

2818

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

2 2386

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 2055

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

Vector,

8 20958

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

1321

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

1330

Table of Sudoku n*n

1493

Magic square

1475

Eight queens puzzle

1345

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

1 2074

Write a program that his output 1 12 123

1357

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

1358


Post New C Questions

Un-Answered Questions { C }

What is meant by gets in c?

597


How do we declare variables in c?

558


What does the file stdio.h contain?

597


How do I read the arrow keys? What about function keys?

606


Why string is used in c?

572






What is string length in c?

600


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1433


What is the difference between typedef and #define?

531


How to implement a packet in C

2385


How are variables declared in c?

588


When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

797


Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?

972


Tell us bitwise shift operators?

590


Can you explain the four storage classes in C?

635


What is "Duff's Device"?

695