GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Tech FAQs  >  OOPS
Go To First  |  Previous Question  |  Next Question 
 OOPS  |  Question 108 of 255    Print  
How can we check whether the contents of two structure variables are same or not?

  
Total Answers and Comments: 1 Last Update: June 25, 2007   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 25, 2007 13:53:49   #1  
satish_sudi Member Since: June 2007   Contribution: 7    

RE: How can we check whether the contents of two stru...
There is no way you can compare the two structure variables.
for Ex:

stucture test a, b;
     if (a == b)   // is wrong, we can't compair structure as whole.

Instread, we should compare individual members of the structures.

 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : The basic difference in C and C++ structures is :1) In C , default access for structure members is public2) In C++ , defaulot access for structres is private ...

Latest Answer : A structure is a cunstructed data type, Which has a mecanism for packing of different type of data. ...

Latest Answer : Auto variables are stores in the Stack . ...

Where does global, static, local, register variables, free memory and C Program instructions get stored?

Describe about storage allocation and scope of global, extern, static, local and register variables?

Latest Answer : Register variables are stores in the registers, so the speed of processing is much more then the normal variables. ...

Latest Answer : The main difference between the Structer and the union is the memory allocation for it`s variables. The Structer allocates the memory that is equal to the sum of the size of all it`s data members, whereas the union allocates the memory ...

Latest Answer : They all are User defined data types not the standered data types. ...

Latest Answer : Yes, a simple exp is the link list. ...
Tags : Pointer

Latest Answer : There is no way you can compare the two structure variables.for Ex:stucture test a, b;     if (a == b)   // is wrong, we can't compair structure as whole.Instread, we should compare individual members of the structures. ...


 Sponsored Links

 
Related Articles

ODP.NET - Working with Bind Variables together with OracleParameter

ODP NET Working with Bind Variables together with OracleParameter With the help of OracleParameter you can include bind variables within any SQL statement These bind variables are nothing but run time query parameters The values in the SQL statement are bound at run time when we use bind variables m
 

Microsoft AJAX Library - Functions as Variables

Functions as Variables In JavaScript functions are first class objects This means that a function is regarded as a data type whose values can be saved in local variables passed as parameters and so on For example when defining a function you can assign it to a variable and then call the function thr
 

OOPS Tutorials

Object oriented programming OOP is a computer science term used to characterize a programming language that began development in the 1960’ s The term object oriented programming’ was originally coined by Xerox PARC to designate a computer application that describes the methodol
 

C++ Structure Part II

C Structure Part II In this C tutorial Structures Part II you will learn how to use structure in an efficient way and features of structures explained with examples mosgoogle center Structure Members Initialization As with arrays and variables structure members can also be initialized This is perfor
 

C++ Structure

C Structure In this C tutorial you will learn about Structure declaring a Structure how to declare Structure Variable and how to access the structure members in C mosgoogle What is a Structure Structure is a collection of variables under a single name Variables can be of any type int float char et
 

What is Common Data Structure

In big data warehouses such as those used by business organizations which may have many branches around the world and which may have diversified products and services, different kinds of data flood the warehouse every single day. These data may come from other warehouse data sources, or simply fresh
 

Swap two variables

How to swap two variables without using third variable? A variable is a named location in memory that is used to store data which can be modified in a program. Let us learn how to swap two variables without using third variable. This can be done in number of ways By using arithmetic operators
 

ITIL Structure

In this article, let us go through some of the aspects involved in the ITIL Structure. Business Perspective The business perspective is meant to familiarize the Business Management with the supporting components and the architectural design of the Information and Technology (ICT), the infrastructure
 

NLP Subjectivity Structure

NLP  Subjectivity Structure Introduction Neuro linguistic Programming consists of three essential and vital components that form an experience They are neurology language and programming Neuro linguistic Programming therefore provides a description for the dynamics between the mind and the
 

VSAM Structure

VSAM Structure In this Mainframe tutorial you will learn about VSAM Structure four major areas of VSAM structure what is VSAM cluster VSAM components Defining VSAM cluster and Example for defining VSAM clusters mosgoogle center There are four major areas in the structure of VSAM They are The Mas
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape