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 17724

how to check whether a linked list is circular.

Microsoft,

11 61711

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 21955

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 14364

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

11 38230

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

Tata Elxsi, TCS, VI eTrans,

35 50190

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

Wipro,

11 23203

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

EA Electronic Arts, Google, Motorola,

25 39502

How to return multiple values from a function?

7 46168

How to access command-line arguments?

4 8416

How to read a directory in a C program?

4 13012

Find your day from your DOB?

Accenture, Microsoft,

15 19365

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 21264

how can u draw a rectangle in C

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

53 115050

how to return a multiple value from a function?

Wipro,

5 9431


Post New C Code Questions

Un-Answered Questions { C Code }

why nlogn is the lower limit of any sort algorithm?

2578


What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql

2669


Cluster head selection in Wireless Sensor Network using C programming language.

3444


Develop a routine to reflect an object about an arbitrarily selected plane

3325


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

3117


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

3168


Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines

3303


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

3062


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.

3550


What is full form of PEPSI

2164


can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail

2609


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

2062


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.

2394


Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??

2184


How to palindrom string in c language?

9978