GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  Sonata  >  C
Go To First  |  Previous Question  |  Next Question 
 C  |  Question 7 of 31    Print  
What is the type of the variable b in the following declaration?
#define FLOATPTR float*
FLOATPTR a,b;
a) float b) float pointer c) int d) int pointer


  
Total Answers and Comments: 2 Last Update: December 28, 2005   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 09, 2005 13:01:40   #1  
spd        

RE: What is the type of the variable b in the following declaration? #define FLOATPTR float* FLOATPTR a...
float * :p
 
Is this answer useful? Yes | No
December 28, 2005 08:01:38   #2  
nirupama        

RE: What is the type of the variable b in the followi...
float
 
Is this answer useful? Yes | No

 Related Questions

What is the output of the following program? #define SQR(x) (x*x) main() { int a,b=3; a= SQR(b+2); printf("%d",a); } a) 25 b) 11 c) error d) garbage value

In which line of the following, an error would be reported? 1. #define CIRCUM(R) (3.14*R*R); 2. main() 3. { 4. float r=1.0,c; 5. c= CIRCUM(r); 6. printf("n%f",c); 7. if(CIRCUM(r))==6.28) 8. printf("nGobbledygook"); 9. } a) line 1 b) line 5 c) line 6 d) line 7

What is the type of the variable b in the following declaration? #define FLOATPTR float* FLOATPTR a,b; a) float b) float pointer c) int d) int pointer
Tags : Pointer

Point out the error in the following program main() { int a=10; void f(); a=f(); printf("n%d",a); } void f() { printf("nHi"); }
The program is trying to collect the value of a "void" function into an integer variable.  


 Sponsored Links

 
Related Articles

What happens when a variable is not initialized in main function?

When a variable is not initialized in main function it contains garbage value. This can be well seen from the example below main() { int x; printf(“%d”,x); z= sample() } sample() { printf(“Testing program”); } Output is   &n
 

What happens when a variable is not declared in function definition?

Generally in C program the function definition and calling takes the form as given below: main() { int x,y,z; z=sample(x,y); printf(“%d”,z); } sample(x1,y1) int x1,y1; { int z1; z1= x1 - y1; return(z1); } Here what happens is the values x, y gets passed to x1,y1
 

How to define command line arguments

The main functions can have arguments passed which are called as command line arguments. There are two command line arguments: Argument count denoted by argc and Argument vector denoted by argv The argc is an integer variable which denotes the number of parameters passed and argv is pointer to a
 

Assign values during declaration

How to assign values during declaration of variables Declaring variables tells the compiler the data type the variable is assigned and no storage area is allocated during this stage. It is possible to assign values during declaration itself. For example, consider the following program: main() {
 

Variable, Constants and Data types in C++

Variable Constants and Data types in C In this C tutorial you will learn about variable constants and data types in C rules for defining variable name short int int long int float double long double char bool declaring variables and constants mosgoogle Variables A variable is the storage location in
 

Type Conversions in C++

Type Conversions in C In this C Tutorial you will learn about Type Conversions in C What is Type Conversion How to achieve this Automatic Conversion otherwise called as Implicit Conversion and Type casting otherwise called as Explicit Conversion mosgoogle What is Type Conversion It is the process of
 

XML - Elements in Document Type Definitions (DTD)

XML Elements in Document Type Definitions DTD In this tutorial you will learn about Elements in DTD Elements child elements nested elements declaring elements with character data only declaring elements with mixed content declaring elements with any content declaring elements with no content and ele
 

XML - Document Type Definitions (DTD)

XML Document Type Definitions DTD In this totuorial you will learn about XML Document Type Definitions DTD Need DTD Types Of DTD’ s Internal DTD External DTD mosgoogle NEED XML documents can contain many different types of markups including elements attributes and entity references Whate
 

. NET Type Safety

NET Type Safety This Article discusses What is Type Safety in the context of NET What is Type Safety How does Type Safety affect us Why is Type Safety Important Writing Type Safe Code How is Type Safety ensured What is Verifiable Type Safe Code Verification process How to determine if the code is
 

Data Type

Data Type  describes how data should be represented interpreted and how the values should be structured or how objects are stored in the memory of the computer.  It  refers to the form of a data value and constraints placed on data interpretation The form of data value&a
 

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