Ask Questions & Get Answers at ibibo sawaal

Ask your Question

Character(s) remaining:  160
 
Ask now
     Powered by Bixee Crawl
Results 1 - 15 of about 77 sawaal for "typedef"
Sort by: Recency | Relevancy

What is typedef in C?

A typedef declaration lets you define your own identifiers that can be used in place of type specifiers such as int, float, and double. A typedef declaration does not reserve storage. The names you define using typedef are not new data types, but synonyms for the data types or combinations of data types they represent. The name space for a typedef name is the same as other identifiers. The exception

Posted in Computers & Technology by Ruchita at 1:29 AM on November 05, 2008
Tags typedef

prototype in C

. The second C prototype demonstrates how to implement a typical CORBA method server-side prototype.The C prototypes described in the following IDL:// IDLstruct widget long a;;typedef sequence<long> longSeq;typedef in this chapter use the following IDL:// IDL struct widget long a;; typedef sequence<long> longSeq; typedef long longarray[10...]; interface foo longSeq op in widget pwidget, inout string pstring, out long

Posted in Computers & Technology by Sharad Singh at 4:52 PM on May 17, 2008
Tags prototype

program using c for linked list all operation

I think this will help you include<stdlib.h >i nclude<stdio.h>struct listel int val;struct listel next;;typedef struct listel item;void main item curr, head;int i;head = NULL;fori=1;i simple, linear linked list can be constructed in C, using dynamic memory allocation and pointers.include<stdlib.h >i nclude<stdio.h>struct listel int val;struct listel next;;typedef struct

Posted in Computers & Technology by Antony at 8:30 PM on May 28, 2008

How do I declare an array of N pointers to functions returningpointers to functions returning pointers to characters?

we declared in three ways..1. char a[N...];2. Build the declaration up in stages, using typedefs:typedef char pc; / pointer to char /typedef pc fpc; / function returning pointer to char /typedef fpc pfpc; / pointer to above /typedef pfpc fpfpc; / function returning... /typedef fpfpc pfpfpc; / pointer to... /pfpfpc a[N...]; / array of... /3. Use the cdecl program, which turns English into C and vice

Posted in Computers & Technology by sanjay at 9:17 PM on November 15, 2008

efficient program for to find prime no b/w 100 to100000

well, Here we give aprogram which will find all primes between 100 to 100000. The program is given below-include <stdio.h>include <string.h>include <stdlib.h>include <assert.h>typedef;stdlib.h>include <assert.h>typedef unsigned long long bignum;void printPrimebignum bnstatic char buf[100000...];sprintfbuf, "ull", bn;buf[strlenbuf - 2...] = 0;printf"sn", buf;void find

Posted in Computers & Technology by Antony at 11:46 PM on May 29, 2008

I cant seem to define a linked list successfully. I triedtypedef struct char item;NODEPTR next; NODEPTR;

The problem with this example is the typedef. A typedef defines a new name for a type, and in simpler cases [footnote...] you can define a new structure type and a typedef for it at the same time, but not in this case. A typedef declaration can not be used until it is defined, and in the fragment above, it is not yet defined at the point where the next field is declared.To fix this code, first give the structure

Posted in Kanpur by keshav at 8:04 PM on October 08, 2008

union in c

is identical to that for structures. You can use either typedefs or instream definitions: simply replace the word struct with the word union.You can contain unions within structures, or structures within unions data.typedef struct transactionint amount;unionint count;char name[4...]; udata;char discount; Transaction;For more information , please do visit source site:http://www.sysprog.ne t

Posted in Computers & Technology by rocky singh at 11:06 PM on May 21, 2008
Tags union

What is the difference between a macro and typedef?

well, A Macro is a preprocessor directive means that before compilation the macros are replaced.Where as typedef is defining a new data type which is same as the existing data type.Syntax:typedef Existing datatype New datatypeFor example typedef int NUMBER;Here NUMBER New datatypeis defined as a data type which contains the properties same as intExisting datatype....The exact difference

Posted in Computers & Technology by gilli... at 1:32 AM on November 13, 2008

Can a structure contain a pointer to itself?

Structures in C can certainly contain pointers to themselves; the discussion and example in section 6.5 of K&R make this clear.The problem with this example is the typedef. A typedef defines a new name for a type, and in simpler cases [footnote...] you can define a new structure type and a typedef for it at the same time, but not in this case. A typedef declaration can not be used until

Posted in Kanpur by keshav at 12:19 AM on October 14, 2008

What is the difference betwen enumrerated datatype and typedef?

Its very Simple that using Enumerated data type you are making special integers that flow within range, While a typedef is redefining data type with new name. Example: like defining enum Dayssun ................. While doing this: typedef Days WeekDays; renames Days as WeekDays Similary typedef int NUMBER; renames int as NUMBER .But wait it is one more name for the data type.. So simply enum creates a numeral

Posted in Computers & Technology by Neha Bist at 4:20 AM on October 27, 2008

what are unions??

org or a COBOL REDEFINE. It allows you to handle an area of memory that could contain different types of variables. The syntax for unions is identical to that for structures. You can use either typedefs to group different record layouts from the same file, or to handle a single field that could contain, for example, either numeric or character data.typedef struct transactionint amount;unionint count

Posted in Computers & Technology by monal rajput at 12:06 AM on September 05, 2008
Tags unions?

Typedef structchar item;NODEPTR next; NODEPTR;but the compiler gave me error messages. Cant a struct in C contain a pointer to itself?

Structs in C can certainly contain pointers to themselves; the discussion and example in section 6.5 of K&R make this clear. The problem with this example is that the NODEPTR typedef;", and/or move the typedef declaration wholly before or wholly after the struct declaration. One corrected version would bestruct nodechar item;struct node next;;typedef struct node NODEPTR

Posted in Computers & Technology by Amit Dubey at 11:13 PM on December 06, 2008

Is typedef available in C ? ?

No. C contains no direct equivalent of the C typedef keyword. However, C does feature an alias specified with the using keyword as in the following example:using ByteList = System

Posted in Computers & Accessories by Ankit Gupta at 11:51 AM on December 03, 2008

Whats the difference between these two declarations?struct x1 ... ;typedef struct ... x2;

well, The first form declares a structure tag; the second declares a typedef. The main difference is that the second declaration is of a slightly more abstract type--its users dont necessarily know possible to play it both ways:typedef struct x3 ... x3;Its legal, if potentially obscure, to use the same name for both the tag and the typedef, since they live in separate namespaces....The first form

Posted in Computers & Technology by sanjay at 3:09 PM on November 17, 2008
sawaal signature