Given a passport size photo draw vertical and horizontal lines
and mark the intersection points(assume one for the photo and
zero for the background).Give the intersection points(1 or 0)
to program and print "." for input 1.



Given a passport size photo draw vertical and horizontal lines and mark the intersection points(as..

Answer / raveathul farzaana.m.y

#include<stdio.h>
#include<conio.h>
void main()
{
int p[50][50],rows,columns;
clrscr();
for(rows=1;rows<=50;rows++)
{
for(columns=1;columns<=50;columns++)
{
printf("\nEnter the value of row%d column%d:",rows,columns);
scanf("%d",&p[rows][columns]);
}}
for(rows=1;rows<=50;rows++)
{
for(columns=1;columns<=50;columns++)
{
if(p[rows][columns]==1)
printf(".");
else
printf(" ");
}
printf("\n");
}
getch();
}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Engineering AllOther Interview Questions

what is ads

2 Answers   HP,


i opt cse branch in engineering.which subject i have choose in civil service preliminary examination

0 Answers  


what will be the value of c in c=x++ + ++x + ++x +x if c=10?

1 Answers  


What is diff b/w TON and BTU for Air conditioner?

0 Answers  


What is my favorite sport?

1 Answers   NetTantra Technologies,






DIRECTIONS for questions 8 and 9: Refer to the data below and answer the questions that follow. There are seven chapters in a mathematics book - A, B, C, D, E, F, and G. The instructor has to follow certain rules while teaching them. i. E cannot be taught before B and C. ii. D should be taught before C and G. iii. B cannot be taught before G. iv. F cannot be taught before C, D, and G. v. A should be taught before B is taught and the two should not be taught consecutively. Q8. If only four chapters are taught, which of the following has to be necessarily false? a) The instructor can get away without teaching F. b) The instructor can avoid teaching E. c) The instructor can avoid teaching C. d) The instructor can avoid teaching G. Q9. If only four chapters are to be taught, which of the following is necessarily true? a) A has to be taught. b) D has to be taught. c) B has to be taught. d) C has to be taught. Q8. If only four chapters are taught, which of the following has to be necessarily false? a) The instructor can get away without teaching F. b) The instructor can avoid teaching E. c) The instructor can avoid teaching C. d) The instructor can avoid teaching G. Q9. If only four chapters are to be taught, which of the following is necessarily true? a) A has to be taught. b) D has to be taught. c) B has to be taught. d) C has to be taught.

1 Answers   Crisil,


What is the meaning of int p(char*a);

0 Answers  


I want to prepare for PSU's bt i dont know how many PSU's are open for computer science students and what is the competition level for these. So if anybody knows this please guide me through this.

0 Answers  


#include<stdio.h> int fn(int v); main() { printf("%d\n",fn(7)); } int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; }

0 Answers  


is a student eligible to sit in the campus selection after getting 55% marks in class 12th.

3 Answers   Infosys,


hi... i just want to know that how could join the AAI with an B.E back ground??? please help me out.

0 Answers   AAI Airports Authority Of India,


What is the job of the amplifier?

3 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4451)
  • Electrical Engineering Interview Questions Electrical Engineering (16632)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)