WHAT WILL BE OUTPUT OF BELOW CODE . . AND PLEASE EXPLAIN HOW
IT COME ..
#include<stdio.h>
#include<conio.h>
void main()
{
int k=20;
printf("%d%d%d%d",k,k++,++k,k);
getch();
}
Answer Posted / balug
22 21 21 20
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
Can you please explain the scope of static variables?
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
What is pass by reference in c?
Explain main function in c?
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
explain what is an endless loop?
What are the advantages of c preprocessor?
What are logical errors and how does it differ from syntax errors?
Apart from dennis ritchie who the other person who contributed in design of c language.
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
Difference between pass by reference and pass by value?
Can you write the algorithm for Queue?
Why do we use header files in c?
What is c token?