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.

1590

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

706

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

EDS,

663




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.

1218

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

2 1015

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 968

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

Vector,

6 8249

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

573




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

593

Table of Sudoku n*n

684

Magic square

614

Eight queens puzzle

624

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

1 904

Write a program that his output 1 12 123

665

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

651


Post New C Questions






Un-Answered Questions { C }

how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

467


‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .

1474


5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.

836


which is an algorithm for sorting in a growing Lexicographic order

648


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

1486






Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?

839


can we have joblib in a proc ?

929


I need testPalindrome and removeSpace #include #define SIZE 256 /* function prototype */ /* test if the chars in the range of [left, right] of array is a palindrome */ int testPalindrome( char array[], int left, int right ); /* remove the space in the src array and copy it over to the "copy" array */ /* set the number of chars in the "copy" array to the location that cnt points t */ void removeSpace(char src[], char copy[], int *cnt); int main( void ) { char c; /* temporarily holds keyboard input */ char string[ SIZE ]; /* original string */ char copy[ SIZE ]; /* copy of string without spaces */ int count = 0; /* length of string */ int copyCount; /* length of copy */ printf( "Enter a sentence:\n" ); /* get sentence to test from user */ while ( ( c = getchar() ) != '\n' && count < SIZE ) { string[ count++ ] = c; } /* end while */ string[ count ] = '\0'; /* terminate string */ /* make a copy of string without spaces */ removeSpace(string, copy, ©Count); /* print whether or not the sentence is a palindrome */ if ( testPalindrome( copy, 0, copyCount - 1 ) ) { printf( "\"%s\" is a palindrome\n", string ); } /* end if */ else { printf( "\"%s\" is not a palindrome\n", string ); } /* end else */ return 0; /* indicate successful termination */ } /* end main */ void removeSpace(char src[], char copy[], int *cnt) { } int testPalindrome( char array[], int left, int right ) { }

1153


what is event driven software and what is procedural driven software?

1245


why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

468


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

2206


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

742


write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.

4021


can anyone suggest some site name..where i can get some good data structure puzzles???

929


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

730