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
Write a C function to search a number in the given list of numbers. donot use printf and scanf
Write a routine that prints out a 2-D array in spiral order
Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.
#define clrscr() 100 main() { clrscr(); printf("%d\n",clrscr()); }
Write a program to print a square of size 5 by using the character S.
1) int i=5; j=i++ + i++ + i++; printf("%d",j);This code gives the answer 15.But if we replace the value of the j then anser is different?why? 2)int i=5; printf("%d",i++ + i++ + i++); this givs 18.
main() { int k=1; printf("%d==1 is ""%s",k,k==1?"TRUE":"FALSE"); }
main() { unsigned int i=10; while(i-->=0) printf("%u ",i); }
Finding a number multiplication of 8 with out using arithmetic operator
code of a program in c language that ask a number and print its decremented and incremented number.. sample output: input number : 3 321123
There were 10 records stored in “somefile.dat” but the following program printed 11 names. What went wrong? void main() { struct student { char name[30], rollno[6]; }stud; FILE *fp = fopen(“somefile.dat”,”r”); while(!feof(fp)) { fread(&stud, sizeof(stud), 1 , fp); puts(stud.name); } }
main() { int i = 257; int *iPtr = &i; printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) ); }