What is extern keyword in c?
No Answer is Posted For this Question
Be the First to Post Answer
What is the general form of #line preprocessor?
How to swap two values using a single variable ? condition: Not to use Array and Pointer ?
What is variable in c example?
Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?
What are logical errors and how does it differ from syntax errors?
Find greatest number out of 10 number without using loop.
what will the following program do? void main() { int i; char a[]="String"; char *p="New Sring"; char *Temp; Temp=a; a=malloc(strlen(p) + 1); strcpy(a,p); //Line no:9// p = malloc(strlen(Temp) + 1); strcpy(p,Temp); printf("(%s, %s)",a,p); free(p); free(a); } //Line no 15// a) Swap contents of p & a and print:(New string, string) b) Generate compilation error in line number 8 c) Generate compilation error in line number 5 d) Generate compilation error in line number 7 e) Generate compilation error in line number 1
There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side? Upload a C program to demonstrate the behaviour of the game.
Is null valid for pointers to functions?
how to write a program which adds two numbers without using semicolon in c
Does c have an equivalent to pascals with statement?
what is pointer?
13 Answers HCL, TCS,