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?

1517

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

EDS,

1334

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.

2815

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

2 2384

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 2049

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

Vector,

8 20942

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

1320

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

1325

Table of Sudoku n*n

1488

Magic square

1471

Eight queens puzzle

1341

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

1 2072

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 }

differentiate built-in functions and user – defined functions.

607


What are the advantages of using new operator as compared to the function malloc ()?

742


How can I manipulate strings of multibyte characters?

629


Why static is used in c?

610


Is c easier than java?

558






What is optimization in c?

558


Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer

3827


What is bin sh c?

569


What is null pointer constant?

583


What are the types of unary operators?

647


what do u mean by Direct access files? then can u explain about Direct Access Files?

1633


What does static variable mean in c?

639


Which are low level languages?

617


What is I ++ in c programming?

609


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

2234