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.

2973

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

1618

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

EDS,

1424

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.

2940

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

2 2573

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 2226

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

Vector,

8 21823

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

1429

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

1433

Table of Sudoku n*n

1593

Magic square

1590

Eight queens puzzle

1440

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

1 2215

Write a program that his output 1 12 123

1447

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

1453


Post New C Questions

Un-Answered Questions { C }

What is exit() function?

640


What is the difference between arrays and pointers?

723


What is meant by inheritance?

716


Describe the order of precedence with regards to operators in C.

714


how to build a exercise findig min number of e heap with list imlemented?

1709






Explain the difference between malloc() and calloc() function?

670


When should you not use a type cast?

756


What is n in c?

673


Can you write a programmer for FACTORIAL using recursion?

692


Explain how can I remove the trailing spaces from a string?

702


Why is c called a mid-level programming language?

821


Explain how do you determine whether to use a stream function or a low-level function?

710


What is meant by errors and debugging?

726


Who invented b language?

1021


What are the advantages of using macro in c language?

677