Question & Additional Information
 
when do you use a union as opposed to a structure in C ?
Add to My IQ
 

Answer Title
Answer
Not Answered
Question Tag Title
Tags
Question Asked At Title
Asked At
None
Question Job Title
Job Titles
None


Check out our newest job listings!

Post a Job! $49 for 60 days



Your Name:
Add your comment text
 
Related Questions
Related Questions
Flag this interview question as inappropriate Inappropriate
See Answer
you use function ptr when you want to call multiple functions using the ptr in a loop.
like have an array of funtion ptrs, loop through the array and execute the functions.
Create Date
:
Monday, January 21, 2008
Tags
:
Asked At
:
None
Job Positions
:
None
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
Flag this interview question as inappropriate Inappropriate
See Answer

structures can be passed by reference.

they can be returned as pointers.

Create Date
:
Saturday, March 15, 2008
Asked At
:
None
Job Positions
:
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
Flag this interview question as inappropriate Inappropriate
See Answer
pseudo code is the code written when converting the algorithm/ flow chart to actual code.
So it is in between the compiled code and flow chart. It is something that is not compiled but can be on
a notepad.
Create Date
:
Saturday, March 15, 2008
Tags
:
Asked At
:
None
Job Positions
:
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
Flag this interview question as inappropriate Inappropriate
See Answer
Methods are for objects functions are regular routines
Create Date
:
Thursday, October 16, 2008
Tags
:
Asked At
:
None
Job Positions
:
None
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
Flag this interview question as inappropriate Inappropriate
See Answer
Test s for prime or not?


#include<stdio.h>
void main(void)
{
           int no,rem,cnt;
        Printf("enter No");
        scanf("%d",&no);
        cnt=2;
        while(cnt<=no)
       {

              rem=no % cnt;
              if (rem==0)
              {
              printf("No is not prime");
              exit(0);
              }
              cnt++;
        }
          printf("No is Prime");
}



Create Date
:
Thursday, October 16, 2008
Tags
:
Asked At
:
None
Job Positions
:
None
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
Flag this interview question as inappropriate Inappropriate
See Answer
main()
{
 int n,row=1,col=40,i=0,j,k=0,count=1;
 int a[10];
 clrscr();
 i=n-1;
 printf("            WELCOME TO THE PROGRAM SIR/MADAM

<BR>);
 printf("Pyramid of how many numbers?  ");
 scanf("%d",&n);
 for (j=0;j<n;j++)
 {
  printf("Enter no.:-  ");
  scanf("%d",&a[j]);
 }
 clrscr();
 for (row=n;row>=1;row--)
 {
  k=0;
  k=40-(4*(row-1));
  i=row-1;
  for (col=40;col>=k;col=(col-4))
  {
   gotoxy(col,row);
   printf("%d",a[i]);
   --i;
  }
 }

 for (count=n;count>=1;count--)
 {
  k=0;
  k=40+(4*(count-1));
  i=count-1;
  for (col=40;col<=k;col=(col+4))
  {
   gotoxy(col,count);
   printf("%d",a[i]);
   --i;
  }
 }
 getch();
}

Create Date
:
Thursday, October 16, 2008
Tags
:
Asked At
:
None
Job Positions
:
None
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
 
• More Related Questions: