Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Topic :: C++





C++ Interview Questions
Questions Answers Views Company eMail

write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values.  The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.

3481

What is the best concrete grade for raft foundation up to 1.5 meters depth?

3 9195

What is the best mixing ratio of concrete materiloas for raft foundation?

1 6954

In what construction is concrete grade m35 used?

Cipla, High Concrete,

4 10902

How do you recognize a 5 star hotel?

Somerset,

3143

What is ALSPA 370 control system

DUBAL-Dubai Aluminium,

1 5430

In table a 1lakh data is present,in table b 20 thousand data is present, to get unique data from table a and b which join to be considered. whether right outer join or left inner join. 

GE,

2 5328

I have 2 table A and B. In A 1 lakh record is present. In b 20 thousand data is present. To get the unique data from table A and B which join we should prefer left inner join or right outer join. Please answer.

GE,

4 9946

difference between converter and invertor

2 5466

Which protocol encapsulates IP datagrams on a serial line ?

1 2506

Which protocol is an improvement over SLIP and is supported by Solaris ?

1 3158

Which protocol translates MAC addresses to IP addresses ?

1 2918

What does ICMP stand for ?

1 2852

Which protocol translates host names to IP addresses ?

1 3273

Name 3 commands will let you logon to another machine ?

1 3023




Un-Answered Questions { C++ }

Is VT100 Server will support TCP/IP protocol?

2332


Can we install Oracle database in VT100 Server?

2397


If my server is Sun Solaris can i use like VT100 Server?

2936


Suppose there are two requests for 2 different pages of same site and from 2 different browsers, How Web server recognise the different request and send result to the exact sender browsers.

1768


what is the principle involved in Biometry?

2266


How a component can be placed on Windows?

2857


Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?

3898


How to connect to a remote database using Applet?

2546


How to display names of all components in a Container?

2940


Can you give names of Container classes?

2306


What are the differences between Java 1.0 and Java 2.0?

2274


Name the components that are termed to be Heavy-weight component but available in Light-weight components?

2491


What are the restrictions imposed by a Security Manager on Applets?.

2613


How listener identify that the event came from a particular object?

1995


Can we call virtual funciton in a constructor ?

2203