How to print %d in output
Answers were Sorted based on User's Feedback
main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); }
11 Answers CISOC, CitiGroup, College School Exams Tests,
What is the use of structure padding in c?
Does * p ++ increment p or what it points to?
What is the difference between printf and scanf )?
How many types of operator or there in c?
in one file global variable int i; is declared as static. In another file it is extern int i=100; Is this valid ?
Consider the following C program. #include <stdio.h> int main() { int i; for (i=0;i<3;++i) { fork();fork(); } } How many processes are created when running this program (including the initial one)? Explain
Write the following function in C. 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 are the key features of C?
#include<stdio.h> int main() { int i=2; int j=++i + ++i + i++; printf("%d\n",i); printf("%d\n",j); }
how can i get output like this? 1 2 3 4 5 6
What is output redirection?