C Code Interview Questions
Questions Answers Views Company eMail

How do you write a program which produces its own source code as its output?

7 16495

how to check whether a linked list is circular.

Microsoft,

11 59626

Write out a function that prints out all the permutations of a string. For example, abc would give you abc, acb, bac, bca, cab, cba. You can assume that all the characters will be unique.

IITR, Microsoft, Nike,

5 21026

Write a prog to accept a given string in any order and flash error if any of the character is different. For example : If abc is the input then abc, bca, cba, cab bac are acceptable, but aac or bcd are unacceptable.

Amazon, Microsoft,

5 13413

Program to find the largest sum of contiguous integers in the array. O(n)

11 36338

print a semicolon using Cprogram without using a semicolon any where in the C code in ur program!!

Tata Elxsi, TCS, VI eTrans,

35 45645

print numbers till we want without using loops or condition statements like specifically(for,do while, while swiches, if etc)!

Wipro,

11 21291

Give a oneline C expression to test whether a number is a power of 2?

EA Electronic Arts, Google, Motorola,

25 36100

How to return multiple values from a function?

7 44986

How to access command-line arguments?

4 7571

How to read a directory in a C program?

4 12111

Find your day from your DOB?

Accenture, Microsoft,

15 17208

Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.

Microsoft,

9 19840

how can u draw a rectangle in C

Accenture, CO, Codeblocks, Cognizant, HCL, Oracle, Punjab National Bank, SAP Labs, TCS, University, Wipro,

53 107944

how to return a multiple value from a function?

Wipro,

5 8270


Post New C Code Questions

Un-Answered Questions { C Code }

how to test pierrot divisor

2256


write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??

4140


write a program for area of circumference of shapes

2028


Sir... please give some important coding questions asked by product companies..

1793


How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?

2019






Write a routine to implement the polymarker function

4375


Design an implement of the inputs functions for event mode

2957


How to palindrom string in c language?

8836


What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?

3708


A program that will create a movie seat reservation. The program will display the summary seats and its status. The user will be ask what seat no. to be reserved, then it will go back again to the summary to display the updated seat status. If the seat no. is already reserved then it will prompt an error message. And also if the input seat no is out of range then it will also prompt an error message. The program is continuously running. Termination of the program will depends on how the programmer will apply. Sample output: Movie Seats Reservation Summary of Seats: Seat 1: Available Seat 2: Available Seat 3: Available Seat 4: Available Seat 5: Available Enter seat no. (Press 0 to terminate Or the assigned seat capacity) : 1 Movie Seats Reservation Summary of Seats: Seat 1: Reserve Seat 2: Available Seat 3: Available Seat 4: Available Seat 5: Available Enter seat no. (Press 0 to terminate Or the assigned seat capacity) : 6 The Seat no. is out of range! Movie Seats Reservation Summary of Seats: Seat 1: Reserve Seat 2: Available Seat 3: Available Seat 4: Available Seat 5: Available Enter seat no. (Press 0 to terminate Or the assigned seat capacity) : 1 The Seat no. is already reserved! Movie Seats Reservation Summary of Seats: Seat 1: Reserve Seat 2: Available Seat 3: Available Seat 4: Available Seat 5: Available Enter seat no. (Press 0 to terminate Or the assigned seat capacity) : 0 GoodBye... Thank You!!!

1835


What is data _null_? ,Explain with code when u need to use it in data step programming ?

2820


how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns

3117


Hi, i have a project that the teacher want a pyramid of numbers in C# or java...when we click a button...the pyramid should be generated in a listbox/or JtextArea...and the pyramid should have the folowing form: 1 232 34543 4567654 567898765 67890109876 7890123210987 890123454321098 90123456765432109 0123456789876543210 Plz help with codes...didn't find anything on the net.

2681


#include int main(void) { int a=4, b=2; a=b<>2 ; printf("%d",a); return 0; }

1067


How can you relate the function with the structure? Explain with an appropriate example.

2915