Write a Program in 'C' To Insert a Unique Number Only.
(Hint: Just Like a Primary Key Numbers In Database.)
Please Some One Suggest Me a Better Solution for This question ??
No Answer is Posted For this Question
Be the First to Post Answer
which function is used to clear the buffer stream on gcc? for example: I wrote following code on gcc #include<stdio.h> int main(void) { char ch; int a,b; printf("\nenter two numbers:\t"); scanf("%d%d",&a,&b); printf("enter number is %d and %d",a,b); printf("\nentercharacter:\t"); scanf("%c",&ch); printf("enter character is %c",ch); return 0; } in above progarm ch could not be scan. why?plz tell me solution.
main() { float i=1.5; switch(i) { case 1: printf("1"); case 2: printf("2"); default : printf("0"); } }
How can i find first 5 natural Numbers without using any loop in c language????????
void ( * abc( int, void ( *def) () ) ) ();
What is the main difference between STRUCTURE and UNION?
Program to Delete an element from a doubly linked list.
4 Answers College School Exams Tests, Infosys,
void main() { int i=10, j=2; int *ip= &i, *jp = &j; int k = *ip/*jp; printf(“%d”,k); }
main() { int i=_l_abc(10); printf("%d\n",--i); } int _l_abc(int i) { return(i++); }
main( ) { void *vp; char ch = ‘g’, *cp = “goofy”; int j = 20; vp = &ch; printf(“%c”, *(char *)vp); vp = &j; printf(“%d”,*(int *)vp); vp = cp; printf(“%s”,(char *)vp + 3); }
What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?
How we print the table of 3 using for loop in c programing?
int i; main(){ int t; for ( t=4;scanf("%d",&i)-t;printf("%d\n",i)) printf("%d--",t--); } // If the inputs are 0,1,2,3 find the o/p