C Code Interview Questions
Questions Answers Views Company eMail

#include void fun(int); int main() { int a; a=3; fun(a); printf("\n"); return 0; } void fun(int i) { if(n>0) { fun(--n); printf("%d",n); fun(--n); } } the answer is 0 1 2 0..someone explain how the code is executed..?

Wipro,

1 22171

1 o 1 1 0 1 0 1 0 1 1 0 1 0 1 how to design this function format in c-language ?

2 4064

can u give me the c codings for converting a string into the hexa decimal form......

1 3608

#include"math.h" void main() { printf("Hi everybody"); } if will be included then this program will must compile, but as we know that when we include a header file in "" then any system defined function find its defination from all the directrives. So is this code of segment will compile? If no then why?

2 6395

how to delete an element in an array

IBM,

2 6558

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

Microsoft,

6327

To reverse an entire text file into another text file.... get d file names in cmd line

Subex,

2311

write a program in c to merge two array

2 10250

find simple interest & compund interest

2 6759

write a program for area of circumference of shapes

2047

main() { int i; clrscr(); printf("%d", &i)+1; scanf("%d", i)-1; } a. Runtime error. b. Runtime error. Access violation. c. Compile error. Illegal syntax d. None of the above

HCL,

1 9942

main(int argc, char *argv[]) { (main && argc) ? main(argc-1, NULL) : return 0; } a. Runtime error. b. Compile error. Illegal syntax c. Gets into Infinite loop d. None of the above

HCL, LG,

4 11749

main() { int i; float *pf; pf = (float *)&i; *pf = 100.00; printf("\n %d", i); } a. Runtime error. b. 100 c. Some Integer not 100 d. None of the above

HCL, LG,

2 10698

main() { int i = 0xff ; printf("\n%d", i<<2); } a. 4 b. 512 c. 1020 d. 1024

HCL,

2 13890

#define SQR(x) x * x main() { printf("%d", 225/SQR(15)); } a. 1 b. 225 c. 15 d. none of the above

HCL,

3 12716


Post New C Code Questions

Un-Answered Questions { C Code }

why nlogn is the lower limit of any sort algorithm?

2389


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

2423


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.

2151


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

3722


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

1787






Design an implement of the inputs functions for event mode

2976


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

3041


How to palindrom string in c language?

8929


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

3138


write a program for area of circumference of shapes

2047


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

2834


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

3705


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

2232


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

2928


Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ?

3870