C Interview Questions
Questions Answers Views Company eMail

What are the different pointer models in c?

4 3179

What is sparse file?

1 2789

How to set a variable in the environment list?

1 3073




How to reverse a string using a recursive function, without swapping or using an extra memory?

Wipro, TCS, Sony, Cisco, Motorola, Mind Tree, Ophio,

31 82399

What is the Difference between Class and Struct?

Motorola,

10 7153

What is the Difference between Macro and ordinary definition?

Motorola, Cognizant, Bosch, College School Exams Tests,

3 14546

what are brk, sbrk?

Oracle,

1 5605

Why the use of alloca() is discouraged?

Oracle,

2 5669




Will Macros support multiple arguments ?

Oracle,

7 6772

what about "char *(*(*a[])())();"

Oracle,

3 3290

Go through the following code sinippet char a[20]; a="Hello Orcale Test"; will this compile?

Oracle,

4 5176

#include #define sqr(x) (x*x) int main() { int x=2; printf("value of x=%d",sqr(x+1)); } What is the value of x?

Oracle, Accel Frontline, Opera,

16 17205

1 232 34543 4567654 can anyone tell me how to slove this c question

6 12680

Determine the code below, tell me exactly how many times is the operation sum++ performed ? for ( i = 0; i < 100; i++ ) for ( j = 100; j > 100 - i; j--) sum++;

Wipro, ITCO,

5 5227

int main() { int *p=new int; *p=10; del p; cout<<*p; *p= 60; cout<<*p; } what will be the output & why?

TCS,

4 8393


Post New C Questions






Un-Answered Questions { C }

please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

713


using only #include and #include Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.

436


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

911


#include #include struct stu { int i; char j; }; union uni { int i; char j; }; void main() { int j,k; clrscr(); struct stu s; j=sizeof(s); printf("%d",j); union uni u; k=sizeof(u); printf("%d",k); getch(); } what is value of j and k.

2383


please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics

2058






will u please send me the placement papers to my mail???????????????????

592


write an algorithm to display a square matrix.

1332


The purpose of this exercise is to benchmark file writing and reading speed. This exercise is divided into two parts. a). Write a file character by character such that the total file size becomes approximately >10K. After writing close the file handler, open a new stream and read the file character by character. Record both times. Execute this exercise at least 4 times b). Create a buffer capable of storing 100 characters. Now after generating the characters, first store them in the buffer. Once the buffer is filled up, store all the elements in the file. Repeat the process until the total file size becomes approximately >10K.While reading read a while line, store it in buffer and once buffer gets filled up, display the whole buffer. Repeat the exercise at least 4 times with different size of buffer (50, 100, 150 …). Records the times. c). Do an analysis of the differences in times and submit it in class.

797


Write a Program to accept different goods with the number, price and date of purchase and display them

3325


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.

422


why we wont use '&' sing in aceesing the string using scanf

990


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

792


write a program to print largest number of each row of a 2D array

1098


How will you find a duplicate number in a array without negating the nos ?

890


write a program to generate address labels using structures?

1418