What do you want to save?
Add Code snippet
New code examples
-
C 2021-09-19 23:01:02
what is structure padding
#include<stdio.h> Struct dummy { Int num; Double x; Float f; }; Struct dummy1 { Double x; Int num; Float f; }; Int main() { Printf(“size:%d %d ”, sizeof(struct dummy ), sizeof(struct dummy1)); System(“PAUSE”); Return 0; } Add solution -
Other 2021-09-19 16:27:03
int and string concatination cp[
std::string name = "John"; int age = 21; std::string result; // 1. with Boost result = name + boost::lexical_cast<std::string>(age); // 2. with C++11 result = name + std::to_string(age); // 3. with FastFormat.Format fastformat::fmt(resu... Add solution -
Objective-C 2021-09-19 15:16:02
hello world objective-c
#import <objc/Object.h> #import <stdio.h> /** Write your Interface extending Object **/ @implementation HelloWorld:Object -(void) hello { printf("Hello World"); } @end /** Main program for the program execution entry **/ int m... Add solution -
Other 2021-09-19 02:54:03
sjf program in c
#include<stdio.h> int main() { int bt[20],p[20],wt[20],tat[20],i,j,n,total=0,pos,temp; float avg_wt,avg_tat; printf("Enter number of process:"); &nbs... Add solution -
C 2021-09-18 21:29:03
how to print value of pointer in c
#include <stdio.h> #include <stdlib.h> void pointerFuncA(int* iptr){ /*Print the value pointed to by iptr*/ printf("Value: %d\n", *iptr ); /*Print the address pointed to by iptr*/ printf("Value: %p\n", iptr ); /*Print ... Add solution