Can I pass constant values to functions which accept structure
arguments?
Answers were Sorted based on User's Feedback
Answer / guest
No. C has no way of generating anonymous structure values.
Is This Answer Correct ? | 2 Yes | 1 No |
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
What is the newline escape sequence?
What is the exact difference between '\0' and ""
write a program to display all prime numbers
Is it better to bitshift a value than to multiply by 2?
#include<stdio.h> #include<conio.h> void main() {clrscr(); char another='y'; int num; for(;another=='y';) { printf("Enter a number"); scanf("%d",&num); printf("squre of %d is %d",num,num*num); printf("\nwant to enter another number y/n"); scanf("%c",&another); } getch(); } the above code runs only one time.on entering 'y' the screen disappeares.what can i do?
Why array is used in c?
Why isn't it being handled properly?
What are the uses of a pointer?
What is the diffrent between while and do while statement ?
int main() { int days; printf("enter days you are late"); scanf("%d",days); if (days<=5) printf("5o paisa fine"); if (days<=10&&days>=6) printf("1rs fine"); if(days>10) printf("10 rs fine"); if(days=30) printf("membership cancelled"); return 0; } tell me whats wrong in this program? is it right?
What is difference between && and & in c?