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.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Code Interview Questions

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

1 Answers  


Question: We would like to design and implement a programming solution to the reader-writer problem using semaphores in C language under UNIX. We assume that we have three readers and two writers processes that would run concurrently. A writer is to update (write) into one memory location (let’s say a variable of type integer named temp initialized to 0). In the other hand, a reader is to read the content of temp and display its content on the screen in a formatted output. One writer can access the shared data exclusively without the presence of other writer or any reader, whereas, a reader may access the shared memory for reading with the presence of other readers (but not writers).

1 Answers  


write a program in c to merge two array

2 Answers  


#include<stdio.h> main() { struct xx { int x=3; char name[]="hello"; }; struct xx *s=malloc(sizeof(struct xx)); printf("%d",s->x); printf("%s",s->name); }

1 Answers   TCS,


WAP to display 1,2,3,4,5........N

2 Answers  






/*what is the output for*/ void main() { int r; printf("Naveen"); r=printf(); getch(); }

4 Answers  


Declare an array of N pointers to functions returning pointers to functions returning pointers to characters?

1 Answers  


main() { signed int bit=512, mBit; { mBit = ~bit; bit = bit & ~bit ; printf("%d %d", bit, mBit); } } a. 0, 0 b. 0, 513 c. 512, 0 d. 0, -513

3 Answers   HCL, Logical Computers,


program to find magic aquare using array

4 Answers   HCL,


#include<stdio.h> #include<conio.h> void main() { int a=(1,2,3,(1,2,3,4); switch(a) { printf("ans:"); case 1: printf("1");break; case 2: printf("2");break; case 3: printf("1");break; case 4: printf("4");break; printf("end"); } getch(); }

0 Answers  


main() { int i = 257; int *iPtr = &i; printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) ); }

1 Answers   CSC,


Printf can be implemented by using __________ list.

3 Answers  


Categories