GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  Axes Technologies  >  Computer Awareness
Go To First  |  Previous Question  |  Next Question 
 Computer Awareness  |  Question 20 of 35    Print  

Find the output of the following program

int *p,*q;
p=(int *)1000;
q=(int *)2000;
printf("%d",(q-p));

500



  
Total Answers and Comments: 0 Last Update: N/A   
  
 Sponsored Links

 

No answers are posted for this question yet.
Be the first to answer it!


 Related Questions

Conditional results after execution of an instruction in a micro processor is stored ina) registerb) accumulatorc) flag registerd) flag register part of PSW(Program Status Word)

Purpose of PC(Program Counter) in a Microprocessor isa) To store address of TOS(Top Of Stack)b) To store address of next instruction to be executed.c) Count the number of instructions.d) to store base address of the stack.
(b) 

Memory allocation of variables declared in a program isa) allocated in RAM.b) Allocated in ROM.c) allocated on stack.d) Assigned to registers.
(c) 

Find the output of the following programint *p,*q;p=(int *)1000;q=(int *)2000;printf("%d",(q-p));
500 


 Sponsored Links

 
Related Articles

C++ Standard Input Output Stream

C Standard Input Output Stream In this C tutorial you will learn about standard input stream and standard output stream explained along with syntax and examples C programming language uses the concept of streams to perform input and output operations using the keyboard and to display information on
 

printf() Function Return Value

What is the return value from printf() function? printf function always returns the number of characters printed. Let us understand this with an example: main() { int a=10; printf("%d",printf("%d %d %d", a,a,a)); } In this above program the inner printf i
 

How to develop compile and run a C program

The steps involved in building a C program are: 1. First program is created by using any text editor and the file is stored with extension as .c 2. Next the program is compiled. There are many compilers available like GNU C compiler called as gcc, Sun compiler, Borland compiler which is pop
 

What are the Format Specifiers used with printf?

There are several format specifiers available in printf. The format specifier used varies depending on the data type used for printing. The given below are some of the format specifiers used with printf in C program. For integer data type the format specifier used with printf is %d or %i For float
 

printf and sprintf

What is the difference between printf and sprintf? sprintf: Writes formatted data to a character string in memory instead of stdout Syntax of sprintf is: #include <stdio.h> int sprintf (char *string, const char *format [,item [,item]...]); Here, String refers to the pointer to a
 

How to Find Scholarships

How to find Scholarships To obtain a scholarship knowing where to look is crucially important While finding scholarships may sound easy at first it can become very difficult Scholarships are not well advertised and you will want to spend time researching it In addition to scholarships you will also
 

How to find colleges that offer scholarships

How to find colleges that offer scholarships Even if parents have been saving money to pay for the cost of their child s education scholarships can be a great way to help the child receive their degree with no debt If you are a student whose parents did not save money or they refuse to pay for your
 

Sample Resume - Computer Manager Resume

Sample Resume Computer Manager Resume This article provides a sample resume format for those applying for the post of Computer Manager You can make use of this sample resume format while preparing your actual resume mosgoogle The computer manager is like a captain of the ship since they are responsi
 

Sample Resume - Computer Operator Resume

Sample Resume Computer Operator Resume This article provides a sample resume format for those applying for the post of Computer Operator You can make use of this sample resume format while preparing your actual resume Computer Operator Resume mosgoogle Computer operator takes important tasks in an o
 

Sample Resume - Computer Engineer Resume

Sample Resume Computer Engineer Resume This article provides a sample resume format for those applying for the post of Computer Engineer You can make use of this sample resume format while preparing your actual resume mosgoogle Computer Engineer is involved in various tasks of computing like desig
 

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