GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  Covansys  >  Technical
Go To First  |  Previous Question  |  Next Question 
 Technical  |  Question 5 of 43    Print  
i = 12
int *p = &I;
print ("%d %d", p/p,*p**p)
What is the output?

A. 1144
B. 144144
C. O/p Error
D. Junk

C




  
Total Answers and Comments: 2 Last Update: September 07, 2009   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 05, 2009 06:48:30   #1  
Mohammad Rafi.N Member Since: September 2009   Contribution: 1    

RE: i = 12nint *p = &I;nprint ("%d %d", p/p,*p**p)nWhat is the output?nA. 1144nB. 144144nC. O/p ErrornD. Junk

Operations like addition division multiplication and etc cannot be performed on the address as we do for the normal variables


 
Is this answer useful? Yes | No
September 07, 2009 20:44:46   #2  
myogeshchavan97 Member Since: December 2008   Contribution: 28    

RE: i = 12nint *p = &I;nprint ("%d %d", p/p,*p**p)nWhat is the output?nA. 1144nB. 144144nC. O/p ErrornD. Junk
Error.Since We are allowed to do multiplication and division of two pointers.
We can only do
1)add integer to pointer
2)subtract integer from pointer
3)subtract two poiunters.

 
Is this answer useful? Yes | No

 Related Questions

A  
Latest Answer :  “a” will return the address location which the pointer is using, *a the value, &a the address where the address for a is stored. ...
Tags : Pointer

How to pass two arguments to a function prompted to by function pointer A. g -> (1,2) B. *g(1,2) C. (*g)(1,2) D. g(1,2)
C  
Tags : Pointer

I = 12 int *p = &I; print ("%d %d", p/p,*p**p) What is the output? A. 1144 B. 144144 C. O/p Error D. Junk
C  

HelloWorld  

I=0; a = 1; b = 4; swap(int a, int b) { int temp; temp = a; a = b; b = a; i = 1; } What is the output? A. 4 0 0 B. 0 4 1 C. 1 4 1 D. Error

Using Redim Preserve  

For i = 0 to 5 a[i] = i print a[i] next i How would it get printed in the form? A 012345 B. 0     1     2     3     4     5 C. 12345 D. 1      2      3      4      5
B  

A  

Dim Counter; For Counter = True to False Print Counter Next What is the output A. Error message B. True False C. -1 0 D. True
-1 0  

Form load textbox.text = "Hello" on form load what all events will take place A. Initialize B. Initialize, load C. Initialise, load, activate D. Initialise, load, activate, validate
C  


 Sponsored Links

 
Related Articles

Business Intelligence Key Performance Indicators

Business Intelligence Key Performance Indicators What are Key Performance Indicators Key Performance Indicators are also known as Key Success Indicators they help an organization to better define and measure their progress toward professional goals Once an organization has clearly identified its nee
 

Taking Advantage of Standard Internet Protocols

Taking Advantage of Standard Internet Protocols As mentioned Oracle XML DB provides native support for standard internet protocols such as S WebDAV and Continuing with the preceding sample you might for example upload another employee XML document into the XML repository with one of the above prot
 

Performing DML Operations on XML Schema Based XMLType Views

Performing DML Operations on XML Schema Based XMLType Views Analyzing the underlying query of the empSch v view discussed in the preceding section you may note that each attribute of the EMP T object used in the select list maps to a certain column of a single table namely emps What this means in pr
 

Managing SQA Projects

Managing SQA Projects No matter how big a project is there will always be a person who will be overseeing the whole project They are usually the project managers and in this case called the SQA managers SQA managers are always at the forefront of everything answering to the business manager regardin
 

Performing XSLT Transformations inside the Database

Performing XSLT Transformations inside the Database Now that you have the employees XSL stylesheet stored in the database and the xmlusr schema is permitted to access the hr employees table you can create a script that will instruct the database to build an HTML page based on the data stored in hr e
 

Business Performance Management

Business Performance Management What is Business Performance Management Business Performance Management is most commonly described as a set of processes that help companies or organizations optimize their business performance It is specifically designed to organize automate and analyze business meth
 

Moving All the XML Processing into the Database

Moving All the XML Processing into the Database In the preceding example the database server performs only a part of the XML processing while the rest is still performed by the PHP engine Specifically the database server generates an employees XML document based on the records from the hr employees
 

Performing XML Processing inside the Database

Performing XML Processing inside the Database When building XML enabled applications on top of Oracle there are many advantages to performing the XML processing inside the database when compared to performing it on the client The key advantages to perform XML processing inside the database are as fo
 

Transforming and Processing XML with XSLT

Transforming and Processing XML with XSLT In the preceding example you transform XML into HTML directly in your script wrapping the data extracted from the XML document into appropriate HTML tags Alternatively you might perform an XSL Extensible Stylesheet Language transformation to get the same gen
 

XML Processing in PHP and Oracle Applications

Processing XML in PHP Oracle Applications As mentioned there are two alternatives when it comes to performing XML processing in your PHP Oracle application You can perform any required XML processing using either PHP s XML extensions or PEAR XML packages or Oracle s XML features mosgoogle In the fol
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape