Programming Code Interview Questions
Questions Answers Views Company eMail

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 3687

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

1 5368

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

2 13121

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

1 5136

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 6259

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

1 5459

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

1 4592

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

1 5849

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

1 4875

void main() { if(~0 == (unsigned int)-1) printf(“You can answer this if you know how values are represented in memory”); }

1 5174

int swap(int *a,int *b) { *a=*a+*b;*b=*a-*b;*a=*a-*b; } main() { int x=10,y=20; swap(&x,&y); printf("x= %d y = %d\n",x,y); }

1 8210

main() { char *p = “ayqm”; printf(“%c”,++*(p++)); }

IBM, TCS, UGC NET, Wipro,

29 44100

main() { int i=5; printf("%d",++i++); }

1 3641

main() { char *p = “ayqm”; char c; c = ++*p++; printf(“%c”,c); }

1 5084


Un-Answered Questions { Programming Code }

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

3117


Give me some tips in c#?

2158


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

1063


plz send code for Ecorps in j2ee frontend:J2EE Backend: DB2 Express

2395


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

3683






Teta-Omeg-Big-Oh Show that f(n) = n2 + 3n3 is ;(n3).

3184


write a program using virtual function to find the transposing of a square matrix?

2833


write a program that creates a sequenced array of numbers starting with 1 and alternately add 1 and then 2 to create the text number in the series , as shown below. 1,33,4,6,7,9,............147,148,150 Then , using a binary search , searches the array 100 times using randomly generated targets in the range of 1 to 150

3260


create a .dll component operation and use created component in another project. required methods events and properties. connect, add,search,data report

2086


I have this code in leftmenu.ascx page..now on leftmenu.ascx.cs page i want to access id values. but i dont want to check manually like Accommodation,Arts etc.. In cs file my code is like string str[]; //this array contains some values say 10 strings for(i=0;i<100;i++) { if(str[i]==id id.visible=true } i.e.i want to travel for each element of str and each value of id.if they match then id.visible=true how to do?

3808


For printing a message we use System.out.println in normal programs. We use String msg="text....."; Can't we use String msg=" " in normal programs and System.out.println("........") in applets. Please answer this question?

2140


program for check the given number is prime or not in VB.net

2692


how to track links visited in google using iframes

2272


find level of following tree (state, parent) " J,D I,D H,C E,B F,B G,C B,A D,A C,A A,& K,E L,E L,F M,F N,G O,H P,I P,H Q,I R,J S,K U,P T,L

1998


A suduco given & u hv 2 check if it is incomplete(blanks left),or correct or incorrect

2396