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 Symbian.?

0 Answers  


what is inheritance

6 Answers   TCS,


I an doing Engineering in IT(4th year). i want to know what is the scope or .NET and Linux, and which is better for carrier

0 Answers  


How would you design a gravity dam for holding back water?

0 Answers  


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

3 Answers   Infosys,






I want to make my career in networking so how to going there? right now i have done a+ n+ ccna course from cms com institute but i m not certified with globle certification os what is my frist step ?, my finincial prob also with me plz sorry isubmit it

0 Answers  


Hi i want some previous interview questions and answers for KVB Bank.

0 Answers  


How to create test case scenario?

0 Answers   Hindustan Unilever Limited,


Person who dicided to go to weekend trip should not exceed 8 hrs driving in a day. Average speed of forward journey is 40 miles/hour . Due to traffic in sundays ,in return journey average speed is 30mph . How far he can select a picnic spot ?

4 Answers   TCS,


What is Landscape in Sap BW?

0 Answers  


if u r using bugzilla then it generates automatic bugids,while testing uhave got a bug then bug is represented through a bug id say bug1, then bug is assigned to developer he fixes a bug ,say the bug is fixed no error is got later after few regression cycles u have got the same bug but the bug is represented by diff id say bug2,tell me how do i come to know that it is the same bug that had occured previously but now it is represented by diff id

0 Answers  


what are the advantages as disadvantages of the V-model?

0 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)