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 16493

how to check whether a linked list is circular.

Microsoft,

11 59621

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 21022

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 13412

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

11 36326

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

Tata Elxsi, TCS, VI eTrans,

35 45623

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

Wipro,

11 21290

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

EA Electronic Arts, Google, Motorola,

25 36089

How to return multiple values from a function?

7 44985

How to access command-line arguments?

4 7570

How to read a directory in a C program?

4 12104

Find your day from your DOB?

Accenture, Microsoft,

15 17204

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 19838

how can u draw a rectangle in C

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

53 107913

how to return a multiple value from a function?

Wipro,

5 8269


Post New C Code Questions

Un-Answered Questions { C Code }

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

2325


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

2992


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

3026


create a C-code that will display the total fare of a passenger of a taxi if the driver press enter,the timer will stop. Every 10 counts is 2 pesos. Initial value is 25.00

6306


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

3706






Write a routine to implement the polymarker function

4375


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


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

2019


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.

3317


why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?

2258


How to palindrom string in c language?

8834


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 ??

1768


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

2857


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

2915


write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30

2219