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 16439

how to check whether a linked list is circular.

Microsoft,

11 59567

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 20992

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 13378

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

11 36272

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

Tata Elxsi, TCS, VI eTrans,

35 45344

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

Wipro,

11 21206

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

EA Electronic Arts, Google, Motorola,

25 35975

How to return multiple values from a function?

7 44934

How to access command-line arguments?

4 7538

How to read a directory in a C program?

4 12074

Find your day from your DOB?

Accenture, Microsoft,

15 17145

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 19802

how can u draw a rectangle in C

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

53 107611

how to return a multiple value from a function?

Wipro,

5 8220


Post New C Code Questions

Un-Answered Questions { C Code }

how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.

2127


Design an implement of the inputs functions for event mode

2948


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

1781


Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange

2845


3) Int Matrix of certain size was given, We had few valu= es in it like this. =97=97=97=97=97=97=97=97=97=97=97 1 = | 4 | | 5 | &= nbsp; | 45 =97=97=97=97=97=97=97=97=97=97=97 &n= bsp; | 3 | 3 | 5 | = | 4 =97=97=97=97=97=97=97=97=97=97=97 34 |&nbs= p; 3 | 3 | | 12 | &= nbsp; =97=97=97=97=97=97=97=97=97=97=97 3 | &nbs= p; | 3 | 4 | = | 3 =97=97=97=97=97=97=97=97=97=97=97 3 | = ; | | | = ; 3 | =97=97=97=97=97=97=97=97=97=97=97 &= nbsp; | | 4 | = ; | 4 | 3 We w= ere supposed to move back all the spaces in it at the end. Note: = If implemented this prog using recursion, would get higher preference.

3307






Write a program to model an exploding firecracker in the xy plane using a particle system

3675


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

2804


write a simple calculator c program to perform addition, subtraction, mul and div.

3126


how to test pierrot divisor

2242


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

1054


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

3108


In a gymnastic competition, scoring is based on the average of all scores given by the judges excluding the maximum and minimum scores. Let the user input the number of judges, after that, input the scores from the judges. Output the average score. Note: In case, more than two judges give the same score and it happens that score is the maximum or minimum then just eliminate two scores. For example, if the number of judges is 5 and all of them give 10 points each. Then the maximum and minimum score is 10. So the computation would be 10+10+10, this time. The output should be 10 because 30/3 is 10.

2361


What is full form of PEPSI

1846


why nlogn is the lower limit of any sort algorithm?

2360


Write a routine to implement the polymarker function

4364