Quantcast
Channel: C Programming
Browsing latest articles
Browse All 14 View Live

Image may be NSFW.
Clik here to view.

Welcome C programming lovers...

WELCOME Welcome you all to our new blog for C PROGRAMMING

View Article



Tricky

I thought the following C program is perfectly valid (after reading about the comma operator in C). But there is a mistake in the following program, can you identify it?#includeintmain() { inta=1,2;...

View Article

Article 11

For Versus WhileQuestion: Is there any example for which the following two loops will not work same way?/*Program 1 --> For loop*/for(; ; ) {   } /*Program 2 --> While loop*/;while() {...

View Article

Automorphic Numbers

Automorphic Numbers In mathematics an automorphic number (sometimes referred to as a circular number) is a number whose square "ends" in the same digits as the number itself. For example, 52 = 25, 62 =...

View Article

More on printf

What will be the output of following code #includeint main(){         printf("%d",printf("computer"));         return (0);}

View Article


ALGEBRA MAGIC

#include#includeint main(){  int x,y; printf("Think of a munber Between 60 and 100 .\nProvided The number should not consist of the values 0&1.\nPress Enter Key When Ready"); getch(); printf("\nNow...

View Article

MAGIC SQUARE PUZZLE

/* * C Program to Solve the Magic Squares Puzzle without using  * Recursion */#include void magicsq(int, int [][10]);int main( ){    int size;    int a[10][10];    printf("Enter the size: ");...

View Article

Article 6

                1.In a file contains the line "I am a boy\r\n" then on reading this line into the array str using fgets(). What will str contain? A.            "I am a boy\r\n\0" B.            "I am a...

View Article


FACTORIAL

#include int main() {    int n, i;    unsigned long long factorial = 1;    printf("Enter an integer: ");    scanf("%d",&n);    // show error if the user enters a negative integer    if (n < 0)...

View Article


INTERESTING FACT ON C

Below is one of the interesting facts about C programming: 1) The case labels of a switch statement can occur inside if-else statement #include int main() {    int a = 2, b = 2;    switch(a)    {...

View Article

PRINT ASCII TABLE/ASCII CHART

#include int main() {unsigned char count;for(count=32;count{printf(" %3d - %c",count,count);if(count % 6==0)printf("\n"); } return 0; }IT REALLY  WORKS....255>

View Article

CHALLENGE THIS!!!!!!!

Given three corner points of a triangle, and one more point P. Write a function to check whether P lies within the triangle or not.   B(10,30)           / \          /   \         /     \        /   P...

View Article

WALK-IN-INTERVIEW

#1: Which is valid C expression? a) int my_num = 100,000; b) int my_num = 100000; c) int my num = 1000; d) int $my_num = 10000;Answer: bExplanation: space, comma and $ cannot be used in a variable...

View Article


APTITUDE QUESTION

1) Which operator is used to get the "content of a variable pointed to by a pointer"? 1.Dot Operator (.) 2.Address of Operator (&) 3.Indirection or De-reference Operator (*) 4.Arrow Operator...

View Article
Browsing latest articles
Browse All 14 View Live




Latest Images