C Code Interview Questions
Questions Answers Views Company eMail

#define prod(a,b) a*b main() { int x=3,y=4; printf("%d",prod(x+2,y-1)); }

1 15264

main() { unsigned int i=65000; while(i++!=0); printf("%d",i); }

1 14979

main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }

CSC, GoDB Tech, IBM,

9 36324

main() { float f=5,g=10; enum{i=10,j=20,k=50}; printf("%d\n",++k); printf("%f\n",f<<2); printf("%lf\n",f%g); printf("%lf\n",fmod(f,g)); }

1 6930

main() { int i=10; void pascal f(int,int,int); f(i++,i++,i++); printf(" %d",i); } void pascal f(integer :i,integer:j,integer :k) { write(i,j,k); }

1 8078

void pascal f(int i,int j,int k) { printf(ā€œ%d %d %dā€,i, j, k); } void cdecl f(int i,int j,int k) { printf(ā€œ%d %d %dā€,i, j, k); } main() { int i=10; f(i++,i++,i++); printf(" %d\n",i); i=10; f(i++,i++,i++); printf(" %d",i); }

1 9322

What is the output of the program given below main() { signed char i=0; for(;i>=0;i++) ; printf("%d\n",i); }

1 3692

main() { unsigned char i=0; for(;i>=0;i++) ; printf("%d\n",i); }

1 5371

main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }

2 13128

Is the following statement a declaration/definition. Find what does it mean? int (*x)[10];

1 5138

What is the output for the program given below typedef enum errorType{warning, error, exception,}error; main() { error g1; g1=1; printf("%d",g1); }

1 6262

typedef struct error{int warning, error, exception;}error; main() { error g1; g1.error =1; printf("%d",g1.error); }

1 5464

#ifdef something int some=0; #endif main() { int thing = 0; printf("%d %d\n", some ,thing); }

1 4593

#if something == 0 int some=0; #endif main() { int thing = 0; printf("%d %d\n", some ,thing); }

1 5851

What is the output for the following program main() { int arr2D[3][3]; printf("%d\n", ((arr2D==* arr2D)&&(* arr2D == arr2D[0])) ); }

1 4876


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

2322


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

1065


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

2990


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 ?

2255


What is full form of PEPSI

1857






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.

2676


Design an implement of the inputs functions for event mode

2955


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

1793


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

6304


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

2915


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

3107


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

3024


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

3843


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


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

2015