top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Is there any other application of typedef other than creating derived data types & structured data types?

+2 votes
368 views
Is there any other application of typedef other than creating derived data types & structured data types?
posted Nov 16, 2014 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

No, you are right.

But this explaination given by K & R (Brian Kernighan and Dennis Ritchie) might help you to understand more, why and were we should use it.

K&R states that there are two reasons for using a typedef.
  First, it provides a means to make a program more portable. Instead of having to change a type 
  everywhere it appears throughout the program's source files, only a single typedef statement needs
  to be changed.

  Second, a typedef can make a complex declaration easier to understand.
answer Nov 17, 2014 by Arshad Khan
Similar Questions
0 votes

Oracle Virtual box is heavy option for me to launch virtual machines. I am looking for a lite weight hypervisor option or any other solutions which make my life easy.

+2 votes

The following two code sequences produce the same result:

uint mod = val % 4;   
uint mod1 = val & 0x3;

I can use both to calculate the same result. I know that in hardware the & operator is much more simpler realised than the % operator. Therefore I expect it to have a better performance than the % operator.

+2 votes

I want to genarate a csv report from the data of a table, can i do this without creating a directory.

+2 votes

Is there any scenario during the Voice call or in any other call that 'Granted Service Unit' (GSU) can be more than 'Requested Service Unit' (RSU) ?

+6 votes

In android generally when an app is installed, the PackageInstallerActivity and PackageManagerService make sure to assign the supplementary gid's to the app. This determines the level of access when an app is invoked everytime.

I just wanted to confirm if any verification process takes place in the runtime from packagemanager or any other service for that matter.

The app is granted the corresponding access from the gid's that should get it running technically and Packagemanager will only come into picture incase of updating the app.

Is my understanding correct?

...