In C programming, what command or code can be used to determine if a number of odd or even?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

main() { int a = 65; printf(“%d %o %x”,a,a,a); } Output 65 101 41 Please explain me.How it is coming like that?

3 Answers   Excel,


How can I automatically locate a programs configuration files in the same directory as the executable?

0 Answers  


write a programming in c language, 1 3 5 7 9 11

2 Answers   NIIT,


List some basic data types in c?

0 Answers  


struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer

0 Answers  






What is the basic structure of c?

0 Answers  


What are global variables?

0 Answers  


Do character constants represent numerical values?

0 Answers  


Is it better to use a macro or a function?

0 Answers  


console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above

0 Answers  


What is macro?

5 Answers   IBM,


#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?

3 Answers  


Categories